Skip to content

ShadowModel

Defined in: eclipse.rs:34

pub enum ShadowModel {
Cylindrical,
Conical,
}

Shadow model selection.

Cylindrical shadow: binary 0 (umbra) or 1 (sunlit).

The shadow cylinder has radius = occulter_radius and axis along the occulter→light direction. Fast but no penumbra.


Conical shadow: continuous illumination [0, 1] with penumbra.

Uses the apparent-disk overlap area ratio (two-circle intersection) from Montenbruck & Gill. Handles total eclipse (umbra), annular eclipse (transit), and partial eclipse (penumbra).