pub struct BPlane {
pub b_t_km: OrbitPartial,
pub b_r_km: OrbitPartial,
pub ltof_s: OrbitPartial,
pub str_dcm: Matrix3<f64>,
pub frame: Frame,
pub epoch: Epoch,
}
Expand description
Stores a B-Plane
Fields§
§b_t_km: OrbitPartial
The $B_T$ component, in kilometers
b_r_km: OrbitPartial
The $B_R$ component, in kilometers
ltof_s: OrbitPartial
The Linearized Time of Flight
str_dcm: Matrix3<f64>
The B-Plane rotation matrix
frame: Frame
The frame in which this B Plane was computed
epoch: Epoch
The time of computation
Implementations§
Source§impl BPlane
impl BPlane
Sourcepub fn from_dual(orbit: OrbitDual) -> Result<Self, AstroError>
pub fn from_dual(orbit: OrbitDual) -> Result<Self, AstroError>
Returns a newly define B-Plane if the orbit is hyperbolic and already in Dual form
Sourcepub fn new(orbit: Orbit) -> Result<Self, AstroError>
pub fn new(orbit: Orbit) -> Result<Self, AstroError>
Returns a newly defined B-Plane if the orbit is hyperbolic.
Sourcepub fn inertial_to_bplane(&self) -> Matrix3<f64>
pub fn inertial_to_bplane(&self) -> Matrix3<f64>
Returns the DCM to convert to the B Plane from the inertial frame
Sourcepub fn jacobian(&self) -> Matrix3<f64>
pub fn jacobian(&self) -> Matrix3<f64>
Returns the Jacobian of the B plane (BR, BT, LTOF) with respect to the velocity
Sourcepub fn jacobian2(
&self,
invariant: StateParameter,
) -> Result<Matrix2<f64>, AstroError>
pub fn jacobian2( &self, invariant: StateParameter, ) -> Result<Matrix2<f64>, AstroError>
Returns the Jacobian of the B plane (BR, BT) with respect to two of the velocity components
Source§impl BPlane
impl BPlane
Sourcepub fn b_dot_t_km(&self) -> f64
pub fn b_dot_t_km(&self) -> f64
Returns the B dot T, in km
Sourcepub fn b_dot_r_km(&self) -> f64
pub fn b_dot_r_km(&self) -> f64
Returns the B dot R, in km
Sourcepub fn ltof(&self) -> Duration
pub fn ltof(&self) -> Duration
Returns the linearized time of flight, in seconds
NOTE: Although the LTOF should allow to build a 3x3 Jacobian for a differential corrector it’s historically super finicky and one will typically have better results by cascading DCs which target different parameters instead of trying to use the LTOF.
Sourcepub fn magnitude_km(&self) -> f64
pub fn magnitude_km(&self) -> f64
Returns the B plane vector magnitude, in kilometers
Trait Implementations§
impl Copy for BPlane
Auto Trait Implementations§
impl Freeze for BPlane
impl RefUnwindSafe for BPlane
impl Send for BPlane
impl Sync for BPlane
impl Unpin for BPlane
impl UnwindSafe for BPlane
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.