Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 815 Bytes

File metadata and controls

15 lines (9 loc) · 815 Bytes

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