pub struct BPlaneTarget {
pub b_t_km: f64,
pub b_r_km: f64,
pub ltof_s: f64,
pub tol_b_t_km: f64,
pub tol_b_r_km: f64,
pub tol_ltof_s: f64,
}
Fields§
§b_t_km: f64
The $B_T$ component, in kilometers
b_r_km: f64
The $B_R$ component, in kilometers
ltof_s: f64
The Linearized Time of Flight, in seconds
tol_b_t_km: f64
The tolerance on the $B_T$ component, in kilometers
tol_b_r_km: f64
The tolerance on the $B_R$ component, in kilometers
tol_ltof_s: f64
The tolerance on the Linearized Time of Flight, in seconds
Implementations§
source§impl BPlaneTarget
impl BPlaneTarget
sourcepub fn from_targets(b_t_km: f64, b_r_km: f64, ltof: Duration) -> Self
pub fn from_targets(b_t_km: f64, b_r_km: f64, ltof: Duration) -> Self
Initializes a new B Plane target with only the targets and the default tolerances. Default tolerances are 1 millimeter in positions and 1 second in LTOF
sourcepub fn from_bt_br(b_t_km: f64, b_r_km: f64) -> Self
pub fn from_bt_br(b_t_km: f64, b_r_km: f64) -> Self
Initializes a new B Plane target with only the B Plane targets (not LTOF constraint) and the default tolerances. Default tolerances are 1 millimeter in positions. Here, the LTOF tolerance is set to 100 days.
pub fn ltof_target_set(&self) -> bool
pub fn to_objectives(self) -> [Objective; 2]
pub fn to_objectives_with_tolerance(self, tol_km: f64) -> [Objective; 2]
sourcepub fn to_all_objectives_with_tolerance(self, tol_km: f64) -> [Objective; 3]
pub fn to_all_objectives_with_tolerance(self, tol_km: f64) -> [Objective; 3]
Includes the linearized time of flight as an objective
Trait Implementations§
source§impl Clone for BPlaneTarget
impl Clone for BPlaneTarget
source§fn clone(&self) -> BPlaneTarget
fn clone(&self) -> BPlaneTarget
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BPlaneTarget
impl Debug for BPlaneTarget
source§impl Display for BPlaneTarget
impl Display for BPlaneTarget
impl Copy for BPlaneTarget
Auto Trait Implementations§
impl Freeze for BPlaneTarget
impl RefUnwindSafe for BPlaneTarget
impl Send for BPlaneTarget
impl Sync for BPlaneTarget
impl Unpin for BPlaneTarget
impl UnwindSafe for BPlaneTarget
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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>
Converts
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>
Converts
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>
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.