Position

open class 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 org.maplibre.android.style.layers.Property.ANCHOR is set to viewport corresponds to the top of the viewport, or 0° when org.maplibre.android.style.layers.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).

Constructors

Link copied to clipboard
constructor(radialCoordinate: Float, azimuthalAngle: Float, polarAngle: Float)
Creates a Position from a radial coordinate, an azimuthal angle and a polar angle.

Functions

Link copied to clipboard
open fun equals(@Nullable o: Any): Boolean
Link copied to clipboard
open fun fromPosition(radialCoordinate: Float, azimuthalAngle: Float, polarAngle: Float): Position
Returns a Position from a radial coordinate, an azimuthal angle and a polar angle
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun toString(): String