[−][src]Struct nyx_space::propagators::events::StopCondition
A condition to stop a propagator. Note: min_step of propagator options will guide how precise the solution can be!
Fields
max_prop_time: f64
Set to a negative number to search backward
event: Box<dyn Event<StateType = S>>
The event which should be the stopping condition
trigger: usize
The number of times the event must be hit prior to stopping (should be at least 1)
max_iter: usize
Maximum number of iterations of the Brent solver.
epsilon: f64
Maximum error in the event, used as convergence criteria.
Methods
impl<S: Copy> StopCondition<S>
[src]
pub fn new(
event: Box<dyn Event<StateType = S>>,
prop_time: f64,
epsilon: f64
) -> Self
[src]
event: Box<dyn Event<StateType = S>>,
prop_time: f64,
epsilon: f64
) -> Self
Finds the closest time at which this condition is met. Stops on first occurence.
pub fn after_hits(
event: Box<dyn Event<StateType = S>>,
hits: usize,
prop_time: f64,
epsilon: f64
) -> Self
[src]
event: Box<dyn Event<StateType = S>>,
hits: usize,
prop_time: f64,
epsilon: f64
) -> Self
Finds the closest time at which this condition is met. Stops on hits
occurence (must be strictly greater than 1)
Trait Implementations
impl<S: Debug + Copy> Debug for StopCondition<S>
[src]
Auto Trait Implementations
impl<S> !RefUnwindSafe for StopCondition<S>
impl<S> !Send for StopCondition<S>
impl<S> !Sync for StopCondition<S>
impl<S> Unpin for StopCondition<S>
impl<S> !UnwindSafe for StopCondition<S>
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,
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> 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>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
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.
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.
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>,