Function astro::planet::apprnt_mag_muller [] [src]

pub fn apprnt_mag_muller<'a>(
    planet: &Planet,
    i: f64,
    delta: f64,
    r: f64
) -> Result<f64, &'a str>

Computes a planet's apparent magnitude using G. Muller's formulae

Returns

  • app_mag: Apparent magnitude of the planet

Arguments

  • planet: Any variant of Planet
  • i : Phase angle of the planet | in radians
  • delta : Planet-Earth distance | in AU
  • r : Planet-Sun distance | in AU