Files
astronomy/demo/c
Don Cross 0c824bcf1b Major performance improvement for C library: re-use Earth tilt calculations.
Just like I did in the Python version, avoid repeated calculations
of the Earth's tilt angles for a given time. Do this by caching
the angles in the astro_time_t structure. This requires passing in
the time values by address instead of by value. I may go back and
change all the time parameters to pointers for consistency.
2019-06-27 21:47:30 -04:00
..
2019-06-18 21:00:57 -04:00
2019-06-18 21:00:57 -04:00
2019-06-18 21:00:57 -04:00
2019-06-18 21:00:57 -04:00
2019-06-18 21:00:57 -04:00

Astronomy Engine examples in C


Moon Phase Calculator

This example shows how to determine the Moon's current phase, and how to predict when the next few quarter phases will occur.

Body Positions

An example of how to calculate equatorial and horizontal coordinates for all of the major solar system bodies.

Rise/Set

Shows how to calculate sunrise, sunset, moonrise, and moonset times.

Seasons

Calculates the equinoxes and solstices for a given calendar year.

Culmination

Finds when the Sun, Moon, and planets reach their highest position in the sky on a given date, as seen by an observer at a specified location on the Earth. Culmination is also the moment a body crosses the meridian, the imaginary semicircle in the sky that passes from due north on the horizon, through the zenith (straight up), and then toward due south on the horizon.


API Reference

Complete documentation for all the functions and types available in the C version of Astronomy Engine.