Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 903 Bytes

rotation-hor-eqd.md

File metadata and controls

20 lines (12 loc) · 903 Bytes

//astronomy/io.github.cosinekitty.astronomy/rotationHorEqd

rotationHorEqd

fun rotationHorEqd(time: Time, observer: Observer): RotationMatrix

Calculates a rotation matrix from horizontal (HOR) to equatorial of-date (EQD).

This is one of the family of functions that returns a rotation matrix for converting from one orientation to another. Source: HOR = horizontal system (x=North, y=West, z=Zenith). Target: EQD = equatorial system, using equator of the specified date/time.

Return

A rotation matrix that converts HOR to EQD at time and for observer.

Parameters

time The date and time at which the Earth's equator applies.
observer A location near the Earth's mean sea level that defines the observer's horizon.