Package io.papermc.paper.math
Interface Rotation
Represents a rotation with specified pitch and yaw values.
-
Method Summary
Modifier and TypeMethodDescriptionfloat
pitch()
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
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
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
-