astronomy

//astronomy/io.github.cosinekitty.astronomy/Observer

Observer

data class Observer(latitude: Double, longitude: Double, height: Double)

The location of an observer on (or near) the surface of the Earth.

This object is passed to functions that calculate phenomena as observed from a particular place on the Earth.

Constructors

   
Observer
fun Observer(latitude: Double, longitude: Double, height: Double)
 

Functions

Name Summary
toStateVector
fun toStateVector(time: Time, equator: EquatorEpoch): StateVector
Calculates geocentric equatorial position and velocity of an observer on the surface of the Earth.
 
toVector
fun toVector(time: Time, equator: EquatorEpoch): Vector
Calculates geocentric equatorial coordinates of an observer on the surface of the Earth.
 

Properties

Name Summary
height
val height: Double
The height above (positive) or below (negative) sea level, expressed in meters.
 
latitude
val latitude: Double
Geographic latitude in degrees north (positive) or south (negative) of the equator.
 
longitude
val longitude: Double
Geographic longitude in degrees east (positive) or west (negative) of the prime meridian at Greenwich, England.