mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-01-03 13:10:43 -05:00
1.8 KiB
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. |