CommandAPI 9.7.0
An API for the command UI introduced in Minecraft 1.13
|
A class to represent the yaw and pitch rotation in degrees. More...
Public Member Functions | |
Rotation (float yaw, float pitch) | |
Constructs a Rotation with a given yaw and pitch. More... | |
float | getYaw () |
Gets the yaw of this location, measured in degrees. More... | |
float | getPitch () |
Gets the pitch of this rotation, measured in degrees. More... | |
float | getNormalizedYaw () |
Normalizes the given yaw angle to a value between +/-180 degrees. More... | |
float | getNormalizedPitch () |
Normalizes the given pitch angle to a value between +/-90 degrees. More... | |
String | toString () |
int | hashCode () |
boolean | equals (Object obj) |
A class to represent the yaw and pitch rotation in degrees.
dev.jorel.commandapi.wrappers.Rotation.Rotation | ( | float | yaw, |
float | pitch | ||
) |
Constructs a Rotation with a given yaw and pitch.
yaw | the yaw of this rotation in degrees |
pitch | the pitch of this rotation in degrees |
float dev.jorel.commandapi.wrappers.Rotation.getNormalizedPitch | ( | ) |
Normalizes the given pitch angle to a value between +/-90 degrees.
float dev.jorel.commandapi.wrappers.Rotation.getNormalizedYaw | ( | ) |
Normalizes the given yaw angle to a value between +/-180 degrees.
float dev.jorel.commandapi.wrappers.Rotation.getPitch | ( | ) |
Gets the pitch of this rotation, measured in degrees.
float dev.jorel.commandapi.wrappers.Rotation.getYaw | ( | ) |
Gets the yaw of this location, measured in degrees.
String dev.jorel.commandapi.wrappers.Rotation.toString | ( | ) |
Rotation
, in the form "@iliteral{code} <yaw> <pitch> @endiliteral "