Remove negative components.
Returns the vector actual angle.
Linear interpolation to approach a target
Round up the values.
Bounds the vector between those two.
Bounds the vector between those boundaries.
While conserving the x/y ratio, returns the smallest vector possible that can contain the other vector. (like a size) \ Does not modify this vector.
Cross product of the 2 vectors.
The distance between this point and the other one.
The distance between this point and the other one squared. Not square rooted, so no crash and more efficient.
Dot product of the 2 vectors.
While conserving the x/y ratio, returns the largest vector possible that fits inside the other vector. (like a size) \ Does not modify this vector.
Truncate the values.
Is this vector between those boundaries ?
The total length of this vector.
The squared length of this vector. Can be null, and more efficiant than length.
Returns an interpolated vector from this vector to the end vector by a factor. \ Does not modify this vector.
The larger vector possible between the two.
The smaller vector possible between the two.
The normal axis of this vector.
Transform this vector in a unit vector.
Returns a unit vector from this one without modifying this one.
Binary operations
Binary operations
Binary operations
Conversion
Equality operations
Equality operations
Assignment
Assignment
Unary operations
Reflect this vector inside another one that represents the area change.
Refracts this vector onto another one that represents the area change.
Add an angle to this vector.
Returns a vector with an added angle without modifying this one.
Round the values to the nearest integer.
Changes {x, y}
Adds x and y.
Hash value.
{0, -1} vector.
{0, -1} vector.
{0.5, 0.5} vector. Its length is not 0.5 !
{-1, 0} vector.
{-1, 0} vector.
{1, 1} vector. Its length is not one !
{1, 1} vector. Its length is not one !
{1, 1} vector. Its length is not one !
{1, 0} vector.
{1, 0} vector.
{0, 1} vector.
{0, 1} vector.
Null vector.
Null vector.
Null vector.
Returns a unit vector with an angle.
Represent a mathematical 2-dimensional vector.