Files
astronomy/source/kotlin/doc/-position-function/index.md
2022-05-31 20:52:41 -04:00

815 B

//astronomy/io.github.cosinekitty.astronomy/PositionFunction

PositionFunction

fun interface PositionFunction

A function for which to solve a light-travel time problem.

The function correctLightTravel solves a generalized problem of deducing how far in the past light must have left a target object to be seen by an observer at a specified time. This interface expresses an arbitrary position vector as function of time that is passed to correctLightTravel.

Functions

Name Summary
position
abstract fun position(time: Time): Vector
Returns a relative position vector for a given time.