Description
The Normal
property of the Rotation
struct provides a normalized version of the rotation. Normalizing a rotation involves dividing each component of the rotation by its length, ensuring that the rotation maintains a unit length. This is useful for maintaining the integrity of rotational calculations, as it prevents the accumulation of errors that can occur with non-normalized rotations.
Usage
To use the Normal
property, simply access it from an instance of the Rotation
struct. This will return a new Rotation
instance that is the normalized version of the original rotation.
Example
// Example of using the Normal property
Rotation rotation = new Rotation(1, 2, 3, 4);
Rotation normalizedRotation = rotation.Normal;
// normalizedRotation now contains the normalized version of the original rotation.