Modules§
Structs§
Constants§
Traits§
Functions§
- calculate_
latitude_ yearfraction - Calculates required latitude and year fraction to achieve a specific day/night duration ratio and maximum sun height (noon altitude) for a given planet tilt.
- calculate_
sun_ direction - Calculates the sun’s direction vector in the observer’s local coordinate frame (Y up, X east, Z north). This vector points from the observer towards the sun.