pub struct WithEngine<'a, T, Ctx> { /* private fields */ }Expand description
Implementations§
Source§impl<'a, F: ReferenceFrame, Ctx> WithEngine<'a, Direction<F>, Ctx>where
Ctx: TransformContext,
impl<'a, F: ReferenceFrame, Ctx> WithEngine<'a, Direction<F>, Ctx>where
Ctx: TransformContext,
Sourcepub fn to_frame<F2: ReferenceFrame>(&self, jd: &JulianDate) -> Direction<F2>where
(): FrameRotationProvider<F, F2>,
pub fn to_frame<F2: ReferenceFrame>(&self, jd: &JulianDate) -> Direction<F2>where
(): FrameRotationProvider<F, F2>,
Rotates this direction to a new reference frame using the wrapped context.
Source§impl<'a, C, F, U, Ctx> WithEngine<'a, Position<C, F, U>, Ctx>where
C: ReferenceCenter<Params = ()>,
Ctx: TransformContext,
Ctx::Eph: Ephemeris,
F: ReferenceFrame,
U: LengthUnit,
impl<'a, C, F, U, Ctx> WithEngine<'a, Position<C, F, U>, Ctx>where
C: ReferenceCenter<Params = ()>,
Ctx: TransformContext,
Ctx::Eph: Ephemeris,
F: ReferenceFrame,
U: LengthUnit,
Sourcepub fn to_frame<F2: ReferenceFrame>(
&self,
jd: &JulianDate,
) -> Position<C, F2, U>where
(): FrameRotationProvider<F, F2>,
pub fn to_frame<F2: ReferenceFrame>(
&self,
jd: &JulianDate,
) -> Position<C, F2, U>where
(): FrameRotationProvider<F, F2>,
Rotates this position to a new reference frame using the wrapped context.
Sourcepub fn to_center<C2: ReferenceCenter<Params = ()>>(
&self,
jd: &JulianDate,
) -> Position<C2, F, U>where
(): CenterShiftProvider<C, C2, F>,
pub fn to_center<C2: ReferenceCenter<Params = ()>>(
&self,
jd: &JulianDate,
) -> Position<C2, F, U>where
(): CenterShiftProvider<C, C2, F>,
Translates this position to a new reference center using the wrapped context.
Sourcepub fn to<C2: ReferenceCenter<Params = ()>, F2: ReferenceFrame>(
&self,
jd: &JulianDate,
) -> Position<C2, F2, U>
pub fn to<C2: ReferenceCenter<Params = ()>, F2: ReferenceFrame>( &self, jd: &JulianDate, ) -> Position<C2, F2, U>
Combined center + frame transform using the wrapped context.
Auto Trait Implementations§
impl<'a, T, Ctx> Freeze for WithEngine<'a, T, Ctx>
impl<'a, T, Ctx> RefUnwindSafe for WithEngine<'a, T, Ctx>
impl<'a, T, Ctx> Send for WithEngine<'a, T, Ctx>
impl<'a, T, Ctx> Sync for WithEngine<'a, T, Ctx>
impl<'a, T, Ctx> Unpin for WithEngine<'a, T, Ctx>
impl<'a, T, Ctx> UnsafeUnpin for WithEngine<'a, T, Ctx>
impl<'a, T, Ctx> UnwindSafe for WithEngine<'a, T, Ctx>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T, U> Imply<T> for U
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> UsingEngine for T
impl<T> UsingEngine for T
Source§fn using<'a, Ctx>(&'a self, engine: &'a Ctx) -> WithEngine<'a, Self, Ctx>where
Ctx: TransformContext,
fn using<'a, Ctx>(&'a self, engine: &'a Ctx) -> WithEngine<'a, Self, Ctx>where
Ctx: TransformContext,
Wrap this coordinate with a custom transform context for the next
transformation call.