Vector3
Index
Constructors
constructor
Properties
publicreadonlyx
publicreadonlyy
publicreadonlyz
publicstaticreadonlyback
publicstaticreadonlydown
(0, 0, -1) vector
publicstaticreadonlyforward
(0, 1, 0) vector
publicstaticreadonlyleft
(-1, 0, 0) vector
publicstaticreadonlynegativeInfinity
(-Infinity, -Infinity, -Infinity) vector
publicstaticreadonlyone
(1, 1, 1) vector
publicstaticreadonlypositiveInfinity
(Infinity, Infinity, Infinity) vector
publicstaticreadonlyright
(1, 0, 0) vector
publicstaticreadonlyup
(0, 0, 1) vector
publicstaticreadonlyzero
(0, 0, 0) vector
Accessors
publiclength
Methods
publicadd
Adds two vectors.
publicangleTo
Calculates angle between to vectors (in radians).
publicangleToDegrees
Calculates angle between to vectors (in degrees).
publiccross
Calculates cross product between two vectors.
publicdistanceTo
Calculates distance between vectors.
publicdistanceToSquared
Calculates squared distance between vectors.
publicdiv
Divides two vectors.
publicdot
Calculates dot product between two vectors.
publicinverse
publicisInRange
Checks if distance between vectors is smaller or equal to range.
publiclerp
Interpolates vectors linearly.
publicmul
Multiplies two vectors.
publicnegative
Negates vector.
publicnormalize
Normalizes vector.
publicsub
Subtracts two vectors.
publictoArray
Returns [x, y, z] array.
publictoDegrees
Converts radians to degrees.
publictoFixed
publictoRadians
Converts degrees to radians.
(0, -1, 0) vector