Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.97 KB

index.md

File metadata and controls

28 lines (19 loc) · 1.97 KB

//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.