Represents a Quaternion rotation. Can be interpreted as a direction unit vector (x,y,z) + rotation around the direction vector (w) which represents the up direction.
Unlike
, this cannot store multiple revolutions around an axis.
Backward |
The backwards direction of this rotation. |
Conjugate |
Returns conjugate of this rotation, meaning the X Y and Z components are negated. |
Down |
The downwards direction of this rotation. |
Forward |
The forwards direction of this rotation. |
Inverse |
Returns the inverse of this rotation. |
Left |
The left hand direction of this rotation. |
Normal |
Divides each component of the rotation by its length, normalizing the rotation. |
Right |
The right hand direction of this rotation. |
Up |
The upwards direction of this rotation. |
w |
The W component of this rotation (rotation around the normal defined by X,Y,Z components). |
x |
The X component of this rotation. |
y |
The Y component of this rotation. |
z |
The Z component of this rotation. |
AlmostEqual |
Returns true if we're nearly equal to the passed rotation. |
Angle |
Returns the turn length of this rotation (from identity) in degrees |
Angles |
Return this Rotation as pitch, yaw, roll angles |
Clamp |
Clamp to within degrees of passed rotation |
ClosestAxis |
Will give you the axis most aligned with the given normal |
Distance |
The degree angular distance between this rotation and the target |
LerpTo |
Perform a linear interpolation from this rotation to a target rotation by given amount. |
Pitch |
Return this Rotation pitch |
Roll |
Return this Rotation roll |
RotateAroundAxis |
A convenience function that rotates this rotation around a given axis given amount of degrees |
SlerpTo |
Perform a spherical interpolation from this rotation to a target rotation by given amount. |
Yaw |
Return this Rotation yaw |
Difference |
Returns the difference between two rotations, as a rotation |
From |
Create a Rotation (quaternion) from Angles |
FromAxis |
Create from angle and an axis |
FromPitch |
Create a Rotation (quaternion) from pitch (degrees) |
FromRoll |
Create a Rotation (quaternion) from roll (degrees) |
FromToRotation |
Returns a Rotation that rotates from one direction to another. |
FromYaw |
Create a Rotation (quaternion) from yaw (degrees) |
Lerp |
Perform a linear interpolation from a to b by given amount. |
LookAt |
Create a Rotation (quaternion) from a forward and up vector |
Parse |
Given a string, try to convert this into a quaternion rotation. The format is "x,y,z,w" |
Slerp |
Perform a spherical interpolation from a to b by given amount. |
SmoothDamp |
Smoothly move towards the target rotation |
TryParse |
|