LightPosition

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

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

Parameters

azimuthalAngle

the position of the light relative to 0°

polarAngle

the height of the light

radialCoordinate

the distance from the center of the base of an object to its light

Constructors

LightPosition
Link copied to clipboard

the distance from the center of the base of an object to its light

fun LightPosition(radialCoordinate: Double, azimuthalAngle: Double, polarAngle: Double)

Types

Companion
Link copied to clipboard

Static variables and methods.

object Companion

Functions

copy
Link copied to clipboard
fun copy(radialCoordinate: Double, azimuthalAngle: Double, polarAngle: Double): LightPosition
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toDoubleArray
Link copied to clipboard

Convert this position to a DoubleArray.

fun toDoubleArray(): DoubleArray
toList
Link copied to clipboard

Convert this position to a DoubleArray.

fun toList(): List<Double>
toString
Link copied to clipboard
open override fun toString(): String
toValue
Link copied to clipboard

Convert this position to a Value.

fun toValue(): Value