Function astro::sun::geocent_rect_coords [] [src]

pub fn geocent_rect_coords(
    sun_geo_long: f64,
    sun_geo_lat: f64,
    sun_rad_vec: f64,
    mn_oblq: f64
) -> (f64, f64, f64)

Computes the Sun's geocentric rectangular coordinates, referred to the mean equinox of the date

Returns

(x, y z)

  • x: The X coordinate | in AU
  • y: The Y coordinate | in AU
  • z: The Z coordinate | in AU

  • The positive x-axis is directed towards the Earth's vernal equinox (0 degrees longitude)

  • The positive y-axis lies in the plane of the Earth's equator and is directed towards 90 degrees longitude

  • The positive z-axis is directed towards the Earth's northern celestial pole

Arguments

  • sun_geo_long: The Sun's geometric longitude | in radians, without corrections for nutation and abberation
  • sun_geo_lat : The Sun's geometric latitude | in radians, without corrections for nutation and abberation
  • sun_rad_vec : The Sun's geometric radius vector | in AU
  • mn_oblq : Mean obliquity of the ecliptic