Creates a Vector4 object from the given floats.
x value of the vector
y value of the vector
z value of the vector
w value of the vector
w value of the vector
x value of the vector
y value of the vector
z value of the vector
Returns a new array populated with 4 elements : the Vector4 coordinates.
the resulting array
Returns a new Vector4 copied from the current one.
the new cloned vector
Updates the current Vector4 coordinates with the given floats.
float to copy from
float to copy from
float to copy from
float to copy from
the updated Vector4.
Boolean : True if the current Vector4 coordinates are stricly equal to the given ones.
the vector to compare against
true if they are equal
Boolean : True if the given floats are strictly equal to the current Vector4 coordinates.
x value to compare against
y value to compare against
z value to compare against
w value to compare against
true if equal
Boolean : True if the current Vector4 coordinates are each beneath the distance "epsilon" from the given vector ones.
vector to compare against
(Default: very small number)
true if they are equal
Gets a new Vector4 from current Vector4 floored values
a new Vector4
Gets a new Vector4 from current Vector3 floored values
a new Vector4
Returns the string "Vector4".
"Vector4"
Returns the Vector4 hash code.
a unique hash code
Returns the Vector4 length (float).
the length
Returns the Vector4 squared length (float).
the length squared
Returns a new Vector4 set with the multiplication result of the given floats and the current Vector4 coordinates.
x value multiply with
y value multiply with
z value multiply with
w value multiply with
resulting new vector
Returns a new Vector4 set with the current Vector4 negated coordinates.
a new vector with the negated values
Normalizes in place the Vector4.
the updated Vector4.
Returns a new Vector4 set with the current Vector4 coordinates multiplied by scale (float).
the number to scale with
a new vector with the result
Multiplies the current Vector4 coordinates by scale (float).
the number to scale with
the updated Vector4.
Updates the current Vector4 coordinates with the given floats.
float to set from
float to set from
float to set from
float to set from
the updated Vector4.
Copies the given float to the current Vector3 coordinates
defines the x, y, z and w coordinates of the operand
the current updated Vector3
Returns a new Vector4 set with the result of the subtraction of the given floats from the current Vector4 coordinates.
value to subtract
value to subtract
value to subtract
value to subtract
new vector containing the result
Sets the given vector "result" set with the result of the subtraction of the given floats from the current Vector4 coordinates.
value to subtract
value to subtract
value to subtract
value to subtract
the vector to store the result in
the current Vector4.
Populates the given array from the given index with the Vector4 coordinates.
array to populate
index of the array to start at (default: 0)
the Vector4.
Returns a JSON representation of this vector. This is necessary due to the way Actors detect changes on components like the actor's transform. They do this by adding properties for observation, and we don't want these properties serialized.
Returns the string with the Vector4 coordinates.
a string containing all the vector values
Returns a new Vector3 from the Vector4 (x, y, z) coordinates.
this converted to a new vector3
Returns a new Vector4 set from the starting index of the given array.
the array to pull values from
the offset into the array to start at
the new vector
Updates the given vector "result" from the starting index of the given array.
the array to pull values from
the offset into the array to start at
the vector to store the result in
Updates the given vector "result" from the starting index of the given Float32Array.
the array to pull values from
the offset into the array to start at
the vector to store the result in
Updates the given vector "result" coordinates from the given floats.
float to set from
float to set from
float to set from
float to set from
the vector to the floats in
Returns a new Vector4 set to (1.0, 1.0, 1.0, 1.0)
the new vector
Returns a new Vector4 set with the result of the normal transformation by the given matrix of the given vector. This methods computes transformed normalized direction vectors only.
the new vector
Sets the given vector "result" with the result of the normal transformation by the given matrix of the given floats (x, y, z, w). This methods computes transformed normalized direction vectors only.
value to transform
value to transform
value to transform
value to transform
the transformation matrix to apply
the vector to store the results in
Sets the given vector "result" with the result of the normal transformation by the given matrix of the given vector. This methods computes transformed normalized direction vectors only.
the vector to transform
the transformation matrix to apply
the vector to store the result in
Returns a new Vector4 set to (0.0, 0.0, 0.0, 0.0)
the new vector
Vector4 class created for EulerAngle class conversion to Quaternion