Returns a clone of the vector3 it's called on.
Vector2
Returns the dot product (scale) of the vector dot another vector.
number
Checks if the vector is equal to the one passed in.
boolean
Returns the magnitude (length) of the vector.
number
Scales the vector by the given value.
Vector2
Sets the values of x,y
void
Sets a Vector2 object with json data.
void
Gets the Vector2 object and returns it as a numbers array.
Array
Gets the Vector2 object and returns it as a float32 array.
Float32Array
Generated using TypeDoc
Vector2 constructor