LightPosition

data class LightPosition(radialCoordinate: Double, azimuthalAngle: Double, polarAngle: Double)

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 degree (0 degree when com.mapbox.mapboxsdk.style.layers.Property.ANCHOR is set to viewport corresponds to the top of the viewport, or 0 degree when com.mapbox.mapboxsdk.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 degree, directly above, to 180 degree, directly below).

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 degree

polarAngle

the height of the light

Constructors

LightPosition
Link copied to clipboard
fun LightPosition(radialCoordinate: Double, azimuthalAngle: Double, polarAngle: Double)

Types

Companion
Link copied to clipboard
object Companion

Static variables and methods.

Functions

toDoubleArray
Link copied to clipboard
fun toDoubleArray(): DoubleArray

Convert this position to a DoubleArray.

toList
Link copied to clipboard
fun toList(): List<Double>

Convert this position to a DoubleArray.

toValue
Link copied to clipboard
fun toValue(): Value

Convert this position to a Value.