Interface Angle
Represents an angle that can be relative or absolute.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Angleabsolute(float degrees) Creates a new absolute angle with the specified value.floatdegrees()Retrieves the value of the angle, measured in degrees.booleanrelative()Determines whether the angle is relative or absolute.static Anglerelative(float degrees) Creates a new relative angle with the specified value.
-
Method Details
-
absolute
Creates a new absolute angle with the specified value. Absolute angles are regardless of the current orientation.- Parameters:
degrees- the angle value, measured in degrees- Returns:
- a new
Angleinstance with the specified value
-
relative
Creates a new relative angle with the specified value. Relative angles are relative to the current orientation.- Parameters:
degrees- the angle value, measured in degrees- Returns:
- a new
Angleinstance with the specified value
-
degrees
float degrees()Retrieves the value of the angle, measured in degrees.- Returns:
- the angle value in degrees
-
relative
boolean relative()Determines whether the angle is relative or absolute.- Returns:
trueif the angle is relative,falseif it is absolute
-