A 2D column vector.
Creates a new vector 2.
x value, default = 0.
y value, default = 0.
x value
y value
Sets x and y to absolute values.
Adds the vector 2 to this vector 2. The result is stored in this vector 2.
Vector 2 to add.
Creates a copy of the vector 2.
Copy of this vector 2.
Cross F V
Cross V F
Gets the negative of this vector 2.
Negative copy of this vector 2.
True if the vector 2 is valid, otherwise false. A valid vector has finite values.
boolean
True if the vector 2 is valid, otherwise false.
Calculates the length of the vector 2.
number
The length of the vector 2.
Calculates the length squared of the vector2.
number
The length squared of the vector 2.
Creates a new vector 2 from the given values.
x value.
y value.
Calculates which vector has the maximum values and sets this vector to those values.
Vector 2 to compare for maximum values.
Calculates which vector has the minimum values and sets this vector to those values.
Vector 2 to compare for minimum values.
Matrix multiplication. Stores the result in this vector 2.
Matrix to muliply by.
Dot product multiplication. Stores the result in this vector 2.
Matrix to multiply by.
Vector multiplication. Stores the result in this vector 2.
Value to multiple the vector's values by.
Sets this vector 2 to its negative.
Normalizes the vector 2 [0,1].
number
Length.
Sets the vector 2.
x value, default is 0.
y value, default is 0.
Sets the vector 2 from a vector 2.
Vector 2 to copy values from.
Sets the vector 2 to zero values.
Subtracts the vector 2 from this vector 2. The result is stored in this vector 2.
Vector 2 to subtract.