Description
The Inverse
property of the Rotation
struct returns the inverse of the current rotation. The inverse of a rotation is essentially the rotation that, when applied after the original rotation, results in no net rotation (i.e., the identity rotation).
Usage
To use the Inverse
property, simply access it on an instance of a Rotation
object. This will return a new Rotation
object that represents the inverse of the original rotation.
Example
// Example of using the Inverse property
Rotation originalRotation = Rotation.FromAxis(new Vector3(0, 1, 0), 90);
Rotation inverseRotation = originalRotation.Inverse;
// Applying the inverse rotation should result in the identity rotation
Rotation result = originalRotation * inverseRotation;
// result should be equal to Rotation.Identity