Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 874 Bytes

rotation-hor-eqj.md

File metadata and controls

18 lines (11 loc) · 874 Bytes

//astronomy/io.github.cosinekitty.astronomy/rotationHorEqj

rotationHorEqj

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

Calculates a rotation matrix from horizontal (HOR) to J2000 equatorial (EQJ). 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: EQJ = equatorial system, using equator at the J2000 epoch.

Return

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

Parameters

time The date and time of the observation.
observer A location near the Earth's mean sea level that defines the observer's horizon.