Sun position
Sun position algorithm
Sky_SiteHorizon Struct Reference

Coordinates of a celestial object in the horizon frame, in both rectangular and polar forms. More...

Data Fields

V3D_Vector rectV
 unit vector in horizon coordinates
 
double azimuth_rad
 azimuth (radian)
 
double elevation_rad
 elevation (or altitude) (radian)
 

Detailed Description

Coordinates of a celestial object in the horizon frame, in both rectangular and polar forms.

  • The rectangular coordinate vector has the orientation
    • x points to North horizon,
    • y points to East horizon,
    • z points to the zenith. (This is a left-handed set.)
  • In the polar form, the azimuth is measured clockwise from North (i.e. east = +90°).
  • This combined rectangular & polar form is used because it happens to be most convenient to calculate both forms at once.
Examples
demo1_sun.c, demo2_sun_tracking.c, demo3_moon.c, and demo4_multiple_sites.c.

Definition at line 129 of file sky.h.


The documentation for this struct was generated from the following file: