Files
astronomy/source/kotlin/doc/-spherical/index.md
2022-11-14 13:40:10 -05:00

1.8 KiB

//astronomy/io.github.cosinekitty.astronomy/Spherical

Spherical

data class Spherical(lat: Double, lon: Double, dist: Double)

Spherical coordinates: latitude, longitude, distance.

Constructors

Spherical
fun Spherical(lat: Double, lon: Double, dist: Double)

Functions

Name Summary
toVector
fun toVector(time: Time): Vector
Converts spherical coordinates to Cartesian coordinates.
toVectorFromHorizon
fun toVectorFromHorizon(time: Time, refraction: Refraction): Vector
Given apparent angular horizontal coordinates, calculate the unrefracted horizontal vector.

Properties

Name Summary
dist
val dist: Double
Distance in AU.
lat
val lat: Double
The latitude angle: -90..+90 degrees.
lon
val lon: Double
The longitude angle: 0..360 degrees.