Summary

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 <see cref="T:Angles" />, this cannot store multiple revolutions around an axis.

Properties

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.

Methods

AlmostEqual
Angle Returns the turn length of this rotation (from identity) in degrees
Angles Return this Rotation as pitch, yaw, roll angles
Clamp
ClosestAxis
Distance
LerpTo
Pitch Return this Rotation pitch
Roll Return this Rotation roll
RotateAroundAxis
SlerpTo
Yaw Return this Rotation yaw

Static Fields

Identity A rotation that represents no rotation.

Static Properties

Random Returns a uniformly random rotation.

Static Methods

Difference
From
FromAxis
FromPitch
FromRoll
FromToRotation
FromYaw
Lerp
LookAt
Parse
Slerp
SmoothDamp
TryParse
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.