pub struct BPlane {
pub b_t: OrbitPartial,
pub b_r: 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: OrbitPartial
The $B_T$ component, in kilometers
b_r: 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
sourceimpl BPlane
impl BPlane
sourcepub fn from_dual(orbit: OrbitDual) -> Result<Self, NyxError>
pub fn from_dual(orbit: OrbitDual) -> Result<Self, NyxError>
Returns a newly define B-Plane if the orbit is hyperbolic and already in Dual form
sourcepub fn new(orbit: Orbit) -> Result<Self, NyxError>
pub fn new(orbit: Orbit) -> Result<Self, NyxError>
Returns a newly defined B-Plane if the orbit is hyperbolic.
pub fn b_dot_t(&self) -> f64
pub fn b_dot_r(&self) -> f64
pub fn ltof(&self) -> Duration
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
Trait Implementations
impl Copy for BPlane
Auto Trait Implementations
impl RefUnwindSafe for BPlane
impl Send for BPlane
impl Sync for BPlane
impl Unpin for BPlane
impl UnwindSafe for BPlane
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Printing<T> for T where
T: Display,
impl<T> Printing<T> for T where
T: Display,
fn to_str(self) -> String
fn to_str(self) -> String
Method to serialize generic items, slices, and slices of Vecs.
Adds square brackets around Vecs (prettier lists).
Implementation code is in printing.rs
. Read more
fn to_plainstr(self) -> String
fn to_plainstr(self) -> String
Method to serialize generic items, slices, and slices of Vecs.
Implementation code is in printing.rs
. Read more
fn wvec(self, f: &mut File) -> Result<(), Error>
fn wvec(self, f: &mut File) -> Result<(), Error>
Method to write vector(s) to file f (space separated, without brackets). Passes up io errors Read more
fn pvec(self)
fn pvec(self)
Method to print vector(s) to stdout (space separated,without brackets).
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if 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
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.