AbstractStaticdirectionThe direction to convert.
An object with x and y rotation values in degrees.
StaticdirectionStaticrotationConverts a yaw rotation (in degrees) to the closest Direction.
The yaw value in degrees.
The closest facing direction.
StaticrotationStaticlockLocks a yaw rotation to the nearest 90-degree cardinal direction (e.g. -90, 0, 90, 180).
The original yaw rotation.
The snapped rotation value.
Converts a cardinal Direction to a rotation object.