pub struct LocalTrajectoryFrame<Inertial, Local>where
Inertial: ReferenceFrame,
Local: ReferenceFrame,{
pub dcm: FrameMatrix3<Inertial>,
/* private fields */
}Expand description
Materialized inertial-to-local direction-cosine matrix.
Fields§
§dcm: FrameMatrix3<Inertial>Inertial-to-local direction-cosine matrix.
Implementations§
Source§impl<Inertial, Local> LocalTrajectoryFrame<Inertial, Local>where
Inertial: ReferenceFrame,
Local: ReferenceFrame,
impl<Inertial, Local> LocalTrajectoryFrame<Inertial, Local>where
Inertial: ReferenceFrame,
Local: ReferenceFrame,
Sourcepub fn from_dcm(dcm: FrameMatrix3<Inertial>) -> Self
pub fn from_dcm(dcm: FrameMatrix3<Inertial>) -> Self
Construct from an inertial-to-local direction-cosine matrix.
Sourcepub fn dcm(&self) -> FrameMatrix3<Inertial>
pub fn dcm(&self) -> FrameMatrix3<Inertial>
Return the inertial-to-local direction-cosine matrix.
Sourcepub fn rotation_inverse(&self) -> Rotation3
pub fn rotation_inverse(&self) -> Rotation3
Return the local-to-inertial rotation.
Sourcepub fn to_local(
&self,
v: Displacement<Inertial, Kilometer>,
) -> Displacement<Local, Kilometer>
pub fn to_local( &self, v: Displacement<Inertial, Kilometer>, ) -> Displacement<Local, Kilometer>
Rotate an inertial displacement into the local frame.
Sourcepub fn to_inertial(
&self,
v: Displacement<Local, Kilometer>,
) -> Displacement<Inertial, Kilometer>
pub fn to_inertial( &self, v: Displacement<Local, Kilometer>, ) -> Displacement<Inertial, Kilometer>
Rotate a local displacement back into the inertial frame.
Source§impl<Inertial> LocalTrajectoryFrame<Inertial, RTN>where
Inertial: ReferenceFrame,
impl<Inertial> LocalTrajectoryFrame<Inertial, RTN>where
Inertial: ReferenceFrame,
Sourcepub fn try_from_state<S, C>(
state: &DynamicsState<S, C, Inertial>,
) -> Result<Self, PrincipiaError>where
S: ContinuousScale,
C: ReferenceCenter,
pub fn try_from_state<S, C>(
state: &DynamicsState<S, C, Inertial>,
) -> Result<Self, PrincipiaError>where
S: ContinuousScale,
C: ReferenceCenter,
Build the RTN frame from a Cartesian dynamics state.
Source§impl<Inertial> LocalTrajectoryFrame<Inertial, VNC>where
Inertial: ReferenceFrame,
impl<Inertial> LocalTrajectoryFrame<Inertial, VNC>where
Inertial: ReferenceFrame,
Sourcepub fn try_from_state<S, C>(
state: &DynamicsState<S, C, Inertial>,
) -> Result<Self, PrincipiaError>where
S: ContinuousScale,
C: ReferenceCenter,
pub fn try_from_state<S, C>(
state: &DynamicsState<S, C, Inertial>,
) -> Result<Self, PrincipiaError>where
S: ContinuousScale,
C: ReferenceCenter,
Build the VNC frame from a Cartesian dynamics state.
Source§impl<Inertial> LocalTrajectoryFrame<Inertial, LVLH>where
Inertial: ReferenceFrame,
impl<Inertial> LocalTrajectoryFrame<Inertial, LVLH>where
Inertial: ReferenceFrame,
Sourcepub fn try_from_state<S, C>(
state: &DynamicsState<S, C, Inertial>,
) -> Result<Self, PrincipiaError>where
S: ContinuousScale,
C: ReferenceCenter,
pub fn try_from_state<S, C>(
state: &DynamicsState<S, C, Inertial>,
) -> Result<Self, PrincipiaError>where
S: ContinuousScale,
C: ReferenceCenter,
Build the LVLH frame from a Cartesian dynamics state.
Trait Implementations§
Source§impl<Inertial, Local> Clone for LocalTrajectoryFrame<Inertial, Local>
impl<Inertial, Local> Clone for LocalTrajectoryFrame<Inertial, Local>
Source§fn clone(&self) -> LocalTrajectoryFrame<Inertial, Local>
fn clone(&self) -> LocalTrajectoryFrame<Inertial, Local>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Inertial, Local> Debug for LocalTrajectoryFrame<Inertial, Local>
impl<Inertial, Local> Debug for LocalTrajectoryFrame<Inertial, Local>
impl<Inertial, Local> Copy for LocalTrajectoryFrame<Inertial, Local>
Auto Trait Implementations§
impl<Inertial, Local> Freeze for LocalTrajectoryFrame<Inertial, Local>
impl<Inertial, Local> RefUnwindSafe for LocalTrajectoryFrame<Inertial, Local>where
Local: RefUnwindSafe,
Inertial: RefUnwindSafe,
impl<Inertial, Local> Send for LocalTrajectoryFrame<Inertial, Local>
impl<Inertial, Local> Sync for LocalTrajectoryFrame<Inertial, Local>
impl<Inertial, Local> Unpin for LocalTrajectoryFrame<Inertial, Local>
impl<Inertial, Local> UnsafeUnpin for LocalTrajectoryFrame<Inertial, Local>
impl<Inertial, Local> UnwindSafe for LocalTrajectoryFrame<Inertial, Local>where
Local: UnwindSafe,
Inertial: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more