Rotation
Constructors
Constructor Name | Return Type | Description | Tags |
---|---|---|---|
Rotation.New(number pitch, number yaw, number roll) | Rotation | Constructs a Rotation with the given values | None |
Rotation.FromVector(Vector vector) | Rotation | Constructs a Rotation from the given Vector | None |
Class Functions
Class Function Name | Return Type | Description | Tags |
---|---|---|---|
Rotation.Lerp(Rotation rot1, Rotation rot2, number alpha) | Rotation | Interpolate between 2 rotations | None |
Functions
Function Name | Return Type | Description | Tags |
---|---|---|---|
RotateVector(Vector vector) | Vector | Rotate a given vector by the rotation | None |
UnrotateVector(Vector vector) | Vector | Unrotate a given vector by the rotation | None |
Inverse() | Rotation | Get the inverse of this rotation | None |
Properties
Property Name | Return Type | Description | Tags |
---|---|---|---|
pitch | number | Pitch component of Rotation | None |
yaw | number | Yaw component of Rotation | None |
roll | number | Roll component of Rotation | None |
Constants
Constant Name | Return Type | Description | Tags |
---|---|---|---|
Rotation.Zero | Rotation | Return a Rotation with 0 on each axis | None |
Overrides
Override Name | Return Type | Description | Tags |
---|---|---|---|
+ | Rotation | Add 2 rotations | None |
- | Rotation | Subtract 2 rotations | None |
* | Rotation | Multiply a rotation by a number | None |
to_string | string | Return the string representation of the Rotation | None |