CelestialCalendar 1.0.0 · unreleased development @ 67a7c4c79a4a4a6aa7e703c9e6f0039ae34bee82
Loading...
Searching...
No Matches
illumination.hpp File Reference
#include <algorithm>
#include <cmath>
#include "toolbox.hpp"

Classes

struct  astro::illumination::Geometry
 Observer-facing illumination geometry for a target body. More...
struct  astro::illumination::detail::Separation

Namespaces

namespace  astro
namespace  astro::illumination
namespace  astro::illumination::detail

Functions

auto astro::illumination::detail::separation (const toolbox::SphericalCoordinate &source_pos, const toolbox::SphericalCoordinate &target_pos) -> Separation
 Return sine and cosine of the directions' great-circle separation; origins and axes must match.
auto astro::illumination::fraction (const toolbox::AngleDeg &phase_angle) -> double
 Calculate the illuminated disk fraction from the target-centered phase angle.
auto astro::illumination::geometry (const toolbox::SphericalCoordinate &source_pos, const toolbox::SphericalCoordinate &target_pos) -> Geometry
 Calculate the angular separation, target-centered phase angle, and illuminated fraction.