The Pitch
method of the Rotation
struct returns the pitch component of the rotation. The pitch represents the rotation around the X-axis in a 3D space, typically measured in degrees.
The Pitch
method of the Rotation
struct returns the pitch component of the rotation. The pitch represents the rotation around the X-axis in a 3D space, typically measured in degrees.
To retrieve the pitch value from a Rotation
instance, simply call the Pitch
method on the instance. This method does not take any parameters and returns a float
representing the pitch angle.
// Example of using the Pitch method Rotation rotation = Rotation.From(30.0f, 45.0f, 60.0f); float pitch = rotation.Pitch(); // pitch will be 30.0f