Rotation | CraytaKit
Skip to main content

Rotation

Constructors

Constructor NameReturn TypeDescriptionTags
Rotation.New(number pitch, number yaw, number roll)RotationConstructs a Rotation with the given valuesNone
Rotation.FromVector(Vector vector)RotationConstructs a Rotation from the given VectorNone

Class Functions

Class Function NameReturn TypeDescriptionTags
Rotation.Lerp(Rotation rot1, Rotation rot2, number alpha)RotationInterpolate between 2 rotationsNone

Functions

Function NameReturn TypeDescriptionTags
RotateVector(Vector vector)VectorRotate a given vector by the rotationNone
UnrotateVector(Vector vector)VectorUnrotate a given vector by the rotationNone
Inverse()RotationGet the inverse of this rotationNone

Properties

Property NameReturn TypeDescriptionTags
pitchnumberPitch component of RotationNone
yawnumberYaw component of RotationNone
rollnumberRoll component of RotationNone

Constants

Constant NameReturn TypeDescriptionTags
Rotation.ZeroRotationReturn a Rotation with 0 on each axisNone

Overrides

Override NameReturn TypeDescriptionTags
+RotationAdd 2 rotationsNone
-RotationSubtract 2 rotationsNone
*RotationMultiply a rotation by a numberNone
to_stringstringReturn the string representation of the RotationNone

Examples

© 2024 CraytaKit