A Vec2 array or object.
Readonly Vec2
Approximate threshold for approx comparison
Constant readonly Vec2 with both values equalling -1
Constant readonly Vec2 with both values equalling 1
The number of decimal places calculations are made to.
Normalized Vec2 pointing down
Normalized Vec2 pointing down-left
Normalized Vec2 pointing down-right
Normalized Vec2 pointing left
Normalized Vec2 pointing right
Normalized Vec2 pointing up
Normalized Vec2 pointing up-left
Normalized Vec2 pointing up-right
Constant readonly Vec2 with both values equalling 0
Calculate vec2 absolute value.
Target vector.
Calculate vec2 absolute value.
Target vector.
Destination object to store the result.
Add vectors together.
Target vector.
The vector to add.
Add vectors together.
Target vector.
The vector to add.
Destination object to store the result.
Ceil the values of a vector.
The target vector.
Ceil the values of a vector.
The target vector.
Destination object to store the result.
Clamp a vector by min and max limits.
Target object.
Minimum vector.
Maximum vector.
Clamp a vector by min and max limits.
Target object.
Minimum vector.
Maximum vector.
Destination object to store the values.
Divide two vectors.
Target vector.
The vector to divide by.
Divide two vectors.
Target vector.
The vector to divide by.
Destination object to store the result.
Floor the values of a vector.
The target vector.
Floor the values of a vector.
The target vector.
Destination object to store the result.
Check whether a vector is exactly equal to one (1,1).
Target vector.
Check whether a value is a vec2-like array.
Input value to check.
Check whether a value is a vec2-like object.
Input value to check.
Check whether a vector is exactly equal to zero (0,0).
Get the length of a vector.
The input vector.
Get the squared length of a vector.
The input vector.
Linear interpolate two vectors.
Vector A.
Vector B.
The amount to interpolate by.
Linear interpolate two vectors.
Vector A.
Vector B.
The amount to interpolate by.
Destination object to store the result.
Multiply two vectors.
The target vector.
The vector to multiply by.
Multiply two vectors.
The target vector.
The vector to multiply by.
Destination object to store the result.
Negate a vector.
The target vector.
Negate a vector.
The target vector.
Destination object to store the result.
Normalize a vector.
Target can be vec object or array.
Normalize a vector.
Target can be vec object or array.
destination object to store the result.
Rotate a vector around zero point.
The target vector.
The amount of rotation to apply in radians.
Rotate a vector around zero point.
The target vector.
The amount of rotation to apply in radians.
Optional destination object to store the result.
Round the values of a vector.
The target vector.
Round the values of a vector.
The target vector.
Destination object to store the result.
Subtract one vector from another.
The target vector.
The vector to subtract.
Subtract one vector from another.
The target vector.
The vector to subtract.
Destination object to store the result.
Set vector to zero.
Target Vec2-like object the values will be written to.
Vec2-like array object.