This repository was archived by the owner on Dec 24, 2023. It is now read-only.
This repository was archived by the owner on Dec 24, 2023. It is now read-only.
Orientation querying #9
Open
Description
Also computing the quaternion corresponding to a given rotation
Proposed signatures
This is only valid in an Anise context
impl Anise {
/// Returns the rotation quaternion and the body rate vector
pub fn rotation(&self, from_frame: &Frame, into_frame: &Frame) -> Result<(Quaternion, Vector3), AniseError>;
pub fn position_rotation(&self, from_frame: &Frame, into_frame: &Frame) -> Result<Quaternion, AniseError>;
/// Returns a 6x6 DCM which can be multiplied by a state represented as [x,y,z,vx,vy,vz]
pub fn rotation_dcm(&self, , from_frame: &Frame, into_frame: &Frame) -> Result<Matrix6, AniseError>;
/// The same as above but with the provided light time calculations, cf. https://docs.rs/nyx-space/latest/nyx_space/cosmic/enum.LightTimeCalc.html .
pub fn rotation_with_correction(&self, obj: &Anise.Ephemeris, at: &Anise.Epoch, lt: LightTimeCalc) -> Result<Vector6, AniseError>;
}