âïļvec3
math.vec3
Variables
x - number
y - number
z - number
Functions
unpack
Returns:
x
number
y
number
z
number
length
Returns:
number
length2d
Returns:
number
dist
other vector
math.vec3
vector to calculate distance
Returns:
distance
number
dist2d
other vector
math.vec3
vector to calculate distance
Returns:
2-dimensional distance
number
to2d
Returns:
the original vector with the z component set to 0
math.vec3
cross
other vector
math.vec3
vector to cross with
Returns:
math.vec3
normalize
Returns:
math.vec3
dot
other vector
math.vec3
vector to calculate dot product with
Returns:
number
calc_angle
other vector
math.vec3
vector to calculate angle with
Returns:
the angle between the two vectors
math.vec3
Last updated