Staticaddadd
Add two vectors to produce a new vector
Staticclampclamp
Clamps the components of a vector to limits to produce a new vector
Optionallimits: { max?: Partial<Vector3>; min?: Partial<Vector3> }Staticcrosscross
Calculate the cross product of two vectors. Returns a new vector.
Staticdistancedistance
Calculate the distance between two vectors
Staticdotdot
Calculate the dot product of two vectors
Staticequalsequals
Check the equality of two vectors
Staticfloorfloor
Floor the components of a vector to produce a new vector
Staticlerplerp
Constructs a new vector using linear interpolation on each component from two vectors.
Staticmagnitudemagnitude
The magnitude of a vector
Staticmultiplymultiply
Element-wise multiplication of two vectors together. Not to be confused with Vector3Utils.dot product or Vector3Utils.cross product
Staticnormalizenormalize
Takes a vector 3 and normalizes it to a unit vector
StaticrotateXrotateX
Rotates the vector around the x axis counterclockwise (left hand rule)
Angle in radians
StaticrotateYrotateY
Rotates the vector around the y axis counterclockwise (left hand rule)
Angle in radians
StaticrotateZrotateZ
Rotates the vector around the z axis counterclockwise (left hand rule)
Angle in radians
Staticscalescale
Multiple all entries in a vector by a single scalar value producing a new vector
Staticslerpslerp
Constructs a new vector using spherical linear interpolation on each component from two vectors.
Staticsubtractsubtract
Subtract two vectors to produce a new vector (v1-v2)
StatictotoString
Create a string representation of a vector3
Optionaloptions: { decimals?: number; delimiter?: string }
Utilities operating on Vector3 objects. All methods are static and do not modify the input objects.