Returns a clone of the vector3 it's called on.
Vector3
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 vector3 by the given value.
Vector3
Sets the values of x,y,z
void
Sets a Vector3 object with json data.
void
Gets the Vector3 object and returns it as a numbers array.
Array
Gets the Vector3 object and returns it as a float32 array.
Float32Array
Creates a Vector3 of 1, 1, 1
Vector3
Creates a Vector3 of 0, 0, 0.
Vector3
Generated using TypeDoc
Vector2 constructor