Function practical_astronomy_rust::sun::solar_elongation
source · pub fn solar_elongation(
ra_hour: f64,
ra_min: f64,
ra_sec: f64,
dec_deg: f64,
dec_min: f64,
dec_sec: f64,
gwdate_day: f64,
gwdate_month: u32,
gwdate_year: u32
) -> f64Expand description
Calculate solar elongation for a celestial body.
Solar elongation is the angle between the lines of sight from the Earth to the Sun and from the Earth to the celestial body.
§Arguments
ra_hour– Right Ascension, hour partra_min– Right Ascension, minutes partra_sec– Right Ascension, seconds partdec_deg– Declination, degrees partdec_min– Declination, minutes partdec_sec– Declination, seconds partgwdate_day– Greenwich Date, day partgwdate_month– Greenwich Date, month partgwdate_year– Greenwich Date, year part
§Returns
solar_elongation_deg– Solar elongation, in degrees