star-cem

Compute the position of the sun
git clone git://git.meso-star.fr/star-cem.git
Log | Files | Refs | README | LICENSE

commit b9eb9df773a79b49f53b7e55bba2be441761624c
parent c9cc62400169dfa00258e4b10afa5615ac15f3fe
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed,  8 Oct 2025 09:32:47 +0200

Minor improvement to an API header comment

Diffstat:
Msrc/scem.h | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/scem.h b/src/scem.h @@ -38,8 +38,11 @@ enum scem_sun_algo { /* Sun position */ struct scem_sun_pos { - double zenith; /* [-PI/2, PI/2]. Positive toward the sky */ - double azimuth; /* [0, 2/PI] */ + /* In [-PI/2, PI/2]. Positive toward the sky */ + double zenith; /* [rad] */ + + /* In [0, 2PI] with 0 aligned with north, PI/2 east, PI south, and 3PI/2 west */ + double azimuth; /* [rad] */ }; #define SCEM_SUN_POS_NULL__ {0, 0} static const struct scem_sun_pos SCEM_SUN_POS_NULL = SCEM_SUN_POS_NULL__;