Function spice::core::pxfrm2[][src]

pub fn pxfrm2<S: Into<String>>(
    from: S,
    to: S,
    et_from: f64,
    et_to: f64
) -> Rotation3<f64>

Return the 3x3 matrix that transforms position vectors from one specified frame at a specified epoch to another specified frame at another specified epoch.

Example

let mut kernel = spice::Kernel::new("rsc/krn/hera_study_PO_EMA_2024.tm")?;
let et_from = spice::ephemeris_from_date("2027-MAR-23 16:00:00");
let et_to = spice::ephemeris_from_date("2027-MAR-24 16:00:00");

let matrix = spice::pxfrm2("J2000", "DIMORPHOS", et_from, et_to);

kernel.unload()?;