float Pitch()

robot_2Generated
code_blocksInput

Description

Returns the pitch component of this Rotation instance. The pitch represents the rotation around the X-axis in degrees.

Usage

Use this method to retrieve the pitch angle of a Rotation object. This can be useful when you need to understand or manipulate the orientation of an object in 3D space, particularly when dealing with rotations around the horizontal axis.

Example

// Example of using the Pitch property
Rotation rotation = Rotation.From(30.0f, 45.0f, 60.0f);
float pitch = rotation.Pitch;
// pitch will be 30.0f