The Yaw
property of the Rotation
struct returns the yaw component of the rotation. Yaw represents the rotation around the vertical axis, typically used to describe the left or right turning of an object.
The Yaw
property of the Rotation
struct returns the yaw component of the rotation. Yaw represents the rotation around the vertical axis, typically used to describe the left or right turning of an object.
To access the yaw component of a Rotation
instance, simply use the Yaw
property. This property is read-only and returns a float
value representing the yaw angle in degrees.
// Example of accessing the Yaw property Rotation rotation = Rotation.From(30.0f, 45.0f, 60.0f); float yaw = rotation.Yaw; // yaw now holds the value 45.0f, which is the yaw component of the rotation.