Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 1.08 KB

rotation-eqj-hor.md

File metadata and controls

20 lines (12 loc) · 1.08 KB

//astronomy/io.github.cosinekitty.astronomy/rotationEqjHor

rotationEqjHor

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

Calculates a rotation matrix from J2000 mean equator (EQJ) to horizontal (HOR).

This is one of the family of functions that returns a rotation matrix for converting from one orientation to another. Source: EQJ = equatorial system, using the equator at the J2000 epoch. Target: HOR = horizontal system.

Return

A rotation matrix that converts EQJ to HOR at time and for observer. The components of the horizontal vector are: x = north, y = west, z = zenith (straight up from the observer). These components are chosen so that the "right-hand rule" works for the vector and so that north represents the direction where azimuth = 0.

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.