public class Position
extends java.lang.Object
The position is constructed out of a radial coordinate, an azimuthal angle and a polar angle.
where the radial coordinate indicates the distance from the center of the base of an object to its light, the
azimuthal angle indicates the position of the light relative to 0° (0° when
Property.ANCHOR
is set to viewport corresponds to the top of the
viewport, or 0° when Property.ANCHOR
is set to map corresponds to due
north, and degrees proceed clockwise), and polar indicates the height of the light
(from 0°, directly above, to 180°, directly below).
Constructor and Description |
---|
Position(float radialCoordinate,
float azimuthalAngle,
float polarAngle)
Creates a Position from a radial coordinate, an azimuthal angle and a polar angle.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static Position |
fromPosition(float radialCoordinate,
float azimuthalAngle,
float polarAngle)
Returns a Position from a radial coordinate, an azimuthal angle and a polar angle
|
int |
hashCode() |
java.lang.String |
toString() |
public Position(float radialCoordinate, float azimuthalAngle, float polarAngle)
radialCoordinate
- the distance from the center of the base of an object to its lightazimuthalAngle
- the position of the light relative to 0°polarAngle
- the height of the lightpublic static Position fromPosition(float radialCoordinate, float azimuthalAngle, float polarAngle)
radialCoordinate
- the radial coordinateazimuthalAngle
- the azimuthal anglepolarAngle
- the polar anglepublic boolean equals(@Nullable java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
@NonNull public java.lang.String toString()
toString
in class java.lang.Object