Struct nyx_space::md::Event [−][src]
Defines a state parameter event finder
Fields
parameter: StateParameter
The state parameter
desired_value: f64
The desired self.desired_value, must be in the same units as the state parameter
epoch_precision: TimeUnit
The time precision after which the solver will report that it cannot find any more precise
value_precision: f64
The precision on the desired value
in_frame: Option<(Frame, Arc<Cosm>)>
An optional frame in which to search this – it IS recommended to convert the whole trajectory instead of searching in a given frame!
Implementations
impl Event
[src]
pub fn new(parameter: StateParameter, desired_value: f64) -> Self
[src]
Match a specific event for the parameter to hit the specified value. By default, the time precision is 1 millisecond and the value precision is 1e-3 of whatever unit is the default for that parameter. For example, a radius event will seek the requested value at the meter level, and an angle event will seek it at the thousands of a degree.
pub fn periapsis() -> Self
[src]
Match the periapasis i.e. True Anomaly == 0
pub fn apoapsis() -> Self
[src]
Match the apoapasis i.e. True Anomaly == 180
pub fn in_frame(
parameter: StateParameter,
desired_value: f64,
target_frame: Frame,
cosm: Arc<Cosm>
) -> Self
[src]
parameter: StateParameter,
desired_value: f64,
target_frame: Frame,
cosm: Arc<Cosm>
) -> Self
Match a specific event in another frame, using the default epoch precision and value.
Trait Implementations
impl Clone for Event
[src]
impl Debug for Event
[src]
impl Display for Event
[src]
impl EventEvaluator<Orbit> for Event
[src]
fn epoch_precision(&self) -> Duration
[src]
fn value_precision(&self) -> f64
[src]
fn eval(&self, state: &Orbit) -> f64
[src]
fn eval_crossing(&self, prev_state: &S, next_state: &S) -> bool
[src]
impl EventEvaluator<SpacecraftState> for Event
[src]
fn eval(&self, state: &SpacecraftState) -> f64
[src]
fn epoch_precision(&self) -> Duration
[src]
fn value_precision(&self) -> f64
[src]
fn eval_crossing(&self, prev_state: &S, next_state: &S) -> bool
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl !UnwindSafe for Event
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,