public class Position extends 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(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() |
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 angle© 2015–2019 Mapbox. All rights reserved.