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 used to describe the up and down tilt of an object.
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 used to describe the up and down tilt of an object.
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 in degrees.
// 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