pub struct TargeterSolution<const V: usize, const O: usize> {
pub corrected_state: Spacecraft,
pub achieved_state: Spacecraft,
pub correction: SVector<f64, V>,
pub variables: [Variable; V],
pub achieved_errors: SVector<f64, O>,
pub achieved_objectives: [Objective; O],
pub iterations: usize,
pub computation_dur: Duration,
}
Expand description
Defines a targeter solution
Fields§
§corrected_state: Spacecraft
The corrected spacecraft state at the correction epoch
achieved_state: Spacecraft
The state at which the objectives are achieved
correction: SVector<f64, V>
The correction vector applied
variables: [Variable; V]
The kind of correction (position or velocity)
achieved_errors: SVector<f64, O>
The errors achieved
achieved_objectives: [Objective; O]
The objectives set in the targeter
iterations: usize
The number of iterations required
computation_dur: Duration
Computation duration
Implementations§
Source§impl<const V: usize, const O: usize> TargeterSolution<V, O>
impl<const V: usize, const O: usize> TargeterSolution<V, O>
Sourcepub fn is_finite_burn(&self) -> bool
pub fn is_finite_burn(&self) -> bool
Returns whether this solution is a finite burn solution or not
Sourcepub fn to_mnvr(&self) -> Result<Mnvr, TargetingError>
pub fn to_mnvr(&self) -> Result<Mnvr, TargetingError>
Returns a maneuver if targeter solution was a finite burn maneuver
Trait Implementations§
Source§impl<const V: usize, const O: usize> Clone for TargeterSolution<V, O>
impl<const V: usize, const O: usize> Clone for TargeterSolution<V, O>
Source§fn clone(&self) -> TargeterSolution<V, O>
fn clone(&self) -> TargeterSolution<V, O>
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 moreAuto Trait Implementations§
impl<const V: usize, const O: usize> Freeze for TargeterSolution<V, O>
impl<const V: usize, const O: usize> RefUnwindSafe for TargeterSolution<V, O>
impl<const V: usize, const O: usize> Send for TargeterSolution<V, O>
impl<const V: usize, const O: usize> Sync for TargeterSolution<V, O>
impl<const V: usize, const O: usize> Unpin for TargeterSolution<V, O>
impl<const V: usize, const O: usize> UnwindSafe for TargeterSolution<V, O>
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,
§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.