Description
Returns the conjugate of this rotation, meaning the X, Y, and Z components are negated. The conjugate of a quaternion is useful in various mathematical operations, such as calculating the inverse of a rotation or performing quaternion multiplication.
Usage
To obtain the conjugate of a Rotation
instance, simply access the Conjugate
property. This property is read-only and returns a new Rotation
instance with the X, Y, and Z components negated.
Example
// Example of using the Conjugate property
Rotation originalRotation = Rotation.FromAxis(new Vector3(1, 0, 0), 90);
Rotation conjugateRotation = originalRotation.Conjugate;
// Output the original and conjugate rotations
Log.Info($"Original Rotation: {originalRotation}");
Log.Info($"Conjugate Rotation: {conjugateRotation}");