Description
The Left
property of the Rotation
struct provides the left-hand direction vector of the current rotation. This is useful for determining the direction that is perpendicular to both the forward and up directions, typically used in 3D space calculations.
Usage
To access the left-hand direction of a rotation, use the Left
property on an instance of the Rotation
struct. This property returns a Vector3
representing the left direction.
Example
// Example of using the Left property
Rotation rotation = Rotation.FromAxis(Vector3.Up, 90);
Vector3 leftDirection = rotation.Left;
// Output the left direction
// leftDirection will be a Vector3 representing the left-hand direction of the rotation.