Package org.bukkit.util
Class EulerAngle
java.lang.Object
org.bukkit.util.EulerAngle
EulerAngle is used to represent 3 angles, one for each
 axis (x, y, z). The angles are in radians
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionEulerAngle(double x, double y, double z) Creates a EularAngle with each axis set to the passed angle in radians
- 
Method SummaryModifier and TypeMethodDescriptionadd(double x, double y, double z) Creates a new EulerAngle which is the result of adding the x, y, z components to this EulerAnglebooleandoublegetX()Returns the angle on the x axis in radiansdoublegetY()Returns the angle on the y axis in radiansdoublegetZ()Returns the angle on the z axis in radiansinthashCode()setX(double x) Return a EulerAngle which is the result of changing the x axis to the passed anglesetY(double y) Return a EulerAngle which is the result of changing the y axis to the passed anglesetZ(double z) Return a EulerAngle which is the result of changing the z axis to the passed anglesubtract(double x, double y, double z) Creates a new EulerAngle which is the result of subtracting the x, y, z components to this EulerAngle
- 
Field Details- 
ZEROA EulerAngle with every axis set to 0
 
- 
- 
Constructor Details- 
EulerAnglepublic EulerAngle(double x, double y, double z) Creates a EularAngle with each axis set to the passed angle in radians- Parameters:
- x- the angle for the x axis in radians
- y- the angle for the y axis in radians
- z- the angle for the z axis in radians
 
 
- 
- 
Method Details- 
getXpublic double getX()Returns the angle on the x axis in radians- Returns:
- the angle in radians
 
- 
getYpublic double getY()Returns the angle on the y axis in radians- Returns:
- the angle in radians
 
- 
getZpublic double getZ()Returns the angle on the z axis in radians- Returns:
- the angle in radians
 
- 
setXReturn a EulerAngle which is the result of changing the x axis to the passed angle- Parameters:
- x- the angle in radians
- Returns:
- the resultant EulerAngle
 
- 
setYReturn a EulerAngle which is the result of changing the y axis to the passed angle- Parameters:
- y- the angle in radians
- Returns:
- the resultant EulerAngle
 
- 
setZReturn a EulerAngle which is the result of changing the z axis to the passed angle- Parameters:
- z- the angle in radians
- Returns:
- the resultant EulerAngle
 
- 
addCreates a new EulerAngle which is the result of adding the x, y, z components to this EulerAngle- Parameters:
- x- the angle to add to the x axis in radians
- y- the angle to add to the y axis in radians
- z- the angle to add to the z axis in radians
- Returns:
- the resultant EulerAngle
 
- 
subtractCreates a new EulerAngle which is the result of subtracting the x, y, z components to this EulerAngle- Parameters:
- x- the angle to subtract to the x axis in radians
- y- the angle to subtract to the y axis in radians
- z- the angle to subtract to the z axis in radians
- Returns:
- the resultant EulerAngle
 
- 
equals
- 
hashCodepublic int hashCode()
 
-