Skip to content

body_orientation

Defined in: rotation.rs:77

fn body_orientation(name: &str, epoch: &[Epoch<Tdb>](../../structs/epoch/)) -> [Option<nalgebra::UnitQuaternion<f64>>](https://doc.rust-lang.org/std/option/enum.Option.html)

Compute the body-fixed → ECI orientation for a named body.

Uses the best available model: libration-corrected for the Moon, base IAU model for other bodies. Returns None for unknown bodies.

Takes &Epoch<Tdb> because IAU WGCCRE 2009 specifies the W/α/δ polynomials in TDB days from J2000. See crate::moon::moon_orientation for details.