[][src]Struct nyx_space::propagators::events::StopCondition

pub struct StopCondition<S: Copy> {
    pub max_prop_time: f64,
    pub event: Box<dyn Event<StateType = S>>,
    pub trigger: usize,
    pub max_iter: usize,
    pub epsilon: f64,
}

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]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,