Description
The Conjugate
property of the Rotation
struct returns the conjugate of the current rotation. The conjugate of a rotation is obtained by negating the X, Y, and Z components of the quaternion representation of the rotation, while keeping the W component unchanged. This operation is useful in various mathematical computations involving rotations, such as inverting a rotation or calculating relative rotations.
Usage
To use the Conjugate
property, simply access it on an instance of the Rotation
struct. This will return a new Rotation
instance representing the conjugate of the original rotation.
Example
// Example of using the Conjugate property
Rotation originalRotation = Rotation.FromAxis(new Vector3(0, 1, 0), 90);
Rotation conjugateRotation = originalRotation.Conjugate;
// The conjugateRotation now represents the conjugate of the originalRotation.