Primitive Class Rotation

Represents a degree-based 3D rotation.

All angle components are in degrees clamped to the range [0.0, 360.0].

Members

x (float) X angle component in degrees.
y (float) Y angle component in degrees.
z (float) Z angle component in degrees.

Functions

Rotation(x, y, z) Create a Rotation object.
Direction() Get the normalized direction vector of this Rotation.
__tostring(rot)


Members

x
(float) X angle component in degrees.
y
(float) Y angle component in degrees.
z
(float) Z angle component in degrees.

Functions

Rotation(x, y, z)
Create a Rotation object.

Parameters:

  • x float X angle component in degrees.
  • y float Y angle component in degrees.
  • z float Z angle component in degrees.

Returns:

    Rotation A new Rotation object.
Direction()
Get the normalized direction vector of this Rotation.

Returns:

    Vec3 Normalized direction vector.
__tostring(rot)

Parameters:

Returns:

    string A string showing the X, Y, and Z angle components of this Rotation.
generated by TEN-LDoc (a fork of LDoc 1.4.6)