sun_direction_from_body
Defined in: ephemeris.rs:161
fn sun_direction_from_body(body: &str, epoch: &Epoch) -> [Vec3<frame::Gcrs>](../../structs/vec3/)
Sun direction (unit vector) as seen from a given central body, in J2000 equatorial frame.
"earth"/"moon": delegates tosun_direction_eci(Moon parallax < 0.15°, negligible)- Other known planets: computed from heliocentric orbital elements
- Unknown bodies: fallback to +X direction (vernal equinox)
The returned vector points FROM the body TOWARD the Sun.