[][src]Crate spa

Solar Position Algorithm module for Rust

Collection of algorithms calculating sunrise/sunset and azimuth/zenith-angle.

Structs

SolarPos

The solar position

Enums

SpaError

The error conditions

SunriseAndSet

The sun-rise and sun-set as UTC, otherwise permanent polar-night or polar-day

Functions

calc_solar_position

Returning solar position (azimuth and zenith-angle) at time t and geo-pos lat and lon

calc_sunrise_and_set

Returning Sunrise and Sunset (or PolarNight/PolarDay) at geo-pos lat/lon at time t (UTC)