Class Position

java.lang.Object
com.trimblemaps.mapsdk.style.light.Position

public class Position extends Object
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

    Constructors
    Constructor
    Description
    Position(float radialCoordinate, float azimuthalAngle, float polarAngle)
    Creates a Position from a radial coordinate, an azimuthal angle and a polar angle.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    static Position
    fromPosition(float radialCoordinate, float azimuthalAngle, float polarAngle)
    Returns a Position from a radial coordinate, an azimuthal angle and a polar angle
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 light
      azimuthalAngle - the position of the light relative to 0°
      polarAngle - the height of the light
  • Method Details

    • fromPosition

      public static Position fromPosition(float radialCoordinate, float azimuthalAngle, float polarAngle)
      Returns a Position from a radial coordinate, an azimuthal angle and a polar angle
      Parameters:
      radialCoordinate - the radial coordinate
      azimuthalAngle - the azimuthal angle
      polarAngle - the polar angle
      Returns:
      the created Position object
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @NonNull public String toString()
      Overrides:
      toString in class Object