The yaw
field represents the yaw component of an Angles
structure, which typically corresponds to the left/right rotation around the vertical axis. It is a public instance field of type System.Single
(float).
The yaw
field represents the yaw component of an Angles
structure, which typically corresponds to the left/right rotation around the vertical axis. It is a public instance field of type System.Single
(float).
Use the yaw
field to directly access or modify the yaw component of an Angles
instance. This field is useful when you need to adjust or retrieve the yaw value specifically, such as when calculating rotations or orientations in 3D space.
// Example of using the yaw field Angles angles = new Angles(); angles.yaw = 45.0f; // Set the yaw to 45 degrees // Accessing the yaw value float currentYaw = angles.yaw; // Using yaw in a method angles = angles.WithYaw(90.0f); // Change yaw to 90 degrees using WithYaw method