Rotation Normal { get; set; }

robot_2Generated
code_blocksInput

Description

The Normal property of the Rotation struct provides a normalized version of the rotation. This means that each component of the rotation is divided by its length, resulting in a unit quaternion. Normalizing a rotation is useful for ensuring that the rotation maintains its properties as a valid quaternion, which is essential for accurate rotational calculations.

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.