Skip to main content

Degrees

Type Alias Degrees 

Source
pub type Degrees = Quantity<Degree>;
Expand description

Convenience alias for a degree quantity.

Aliased Type§

pub struct Degrees(/* private fields */);

Trait Implementations§

Source§

impl From<MoonPhaseLabel> for Degrees

Convert a MoonPhaseLabel to a representative elongation in degrees.

This returns the central angle of the octant associated with the label (New=0°, WaxingCrescent=45°, FirstQuarter=90°, …). Implemented as From so callers can use Into<Degrees> as needed.

Source§

fn from(lbl: MoonPhaseLabel) -> Self

Converts to this type from the input type.
Source§

impl From<Twilight> for Degrees

Source§

fn from(t: Twilight) -> Degrees

Convert a named twilight regime to its conventional Sun‑altitude threshold.

§Arguments
§Returns

Degrees with the canonical altitude (e.g. −6° for Civil).