Class Position
java.lang.Object
com.trimblemaps.mapsdk.style.light.Position
Position of the light source relative to lit (extruded) geometries.
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 Summary
ConstructorsConstructorDescriptionPosition(float radialCoordinate, float azimuthalAngle, float polarAngle) Creates a Position from a radial coordinate, an azimuthal angle and a polar angle. -
Method Summary
-
Constructor Details
-
Position
public Position(float radialCoordinate, float azimuthalAngle, float polarAngle) Creates a Position from a radial coordinate, an azimuthal angle and a polar angle.- Parameters:
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 light
-
-
Method Details
-
fromPosition
Returns a Position from a radial coordinate, an azimuthal angle and a polar angle- Parameters:
radialCoordinate- the radial coordinateazimuthalAngle- the azimuthal anglepolarAngle- the polar angle- Returns:
- the created Position object
-
equals
-
hashCode
public int hashCode() -
toString
-