vector

Structure

Properties

Functions

Name Description
abs Applies math.abs to every component of the input vector.
angle Computes the angle between two vectors in radians. The axis, if specified, is used to determine the sign of the angle.
ceil Applies math.ceil to every component of the input vector.
clamp Applies math.clamp to every component of the input vector.
create Creates a new vector with the given component values
cross Computes the cross product of two vectors.
dot Computes the dot product of two vectors.
floor Applies math.floor to every component of the input vector.
magnitude Calculates the magnitude of a given vector.
max Applies math.max to the corresponding components of the input vectors.
min Applies math.min to the corresponding components of the input vectors.
normalize Computes the normalized version (unit vector) of a given vector.
sign Applies math.sign to every component of the input vector.

< Back to SLua