Package io.papermc.paper.math
Interface Rotation
Represents a rotation with specified pitch and yaw values.
-
Method Summary
Modifier and TypeMethodDescriptionfloatpitch()Retrieves the pitch component of the rotation, measured in degrees.static Rotationrotation(float yaw, float pitch) Creates a new rotation with the specified yaw and pitch values.floatyaw()Retrieves the yaw component of the rotation, measured in degrees.
-
Method Details
-
rotation
Creates a new rotation with the specified yaw and pitch values.- Parameters:
yaw- the yaw component of the rotation, measured in degreespitch- the pitch component of the rotation, measured in degrees- Returns:
- a new
Rotationinstance 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
-