Interface Rotation


@NullMarked public interface Rotation
Represents a rotation with specified pitch and yaw values.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Retrieves the pitch component of the rotation, measured in degrees.
    static Rotation
    rotation(float yaw, float pitch)
    Creates a new rotation with the specified yaw and pitch values.
    float
    yaw()
    Retrieves the yaw component of the rotation, measured in degrees.
  • Method Details

    • rotation

      static Rotation rotation(float yaw, float pitch)
      Creates a new rotation with the specified yaw and pitch values.
      Parameters:
      yaw - the yaw component of the rotation, measured in degrees
      pitch - the pitch component of the rotation, measured in degrees
      Returns:
      a new Rotation instance with the specified yaw and pitch
    • pitch

      float pitch()
      Retrieves the pitch component of the rotation, measured in degrees.
      Returns:
      the pitch value in degrees
    • yaw

      float yaw()
      Retrieves the yaw component of the rotation, measured in degrees.
      Returns:
      the yaw value in degrees