Trait nyx_space::md::EventEvaluator[][src]

pub trait EventEvaluator<S: State>: Display + Send + Sync where
    DefaultAllocator: Allocator<f64, S::Size>, 
{ fn eval(&self, state: &S) -> f64;
fn epoch_precision(&self) -> Duration;
fn value_precision(&self) -> f64; fn eval_crossing(&self, prev_state: &S, next_state: &S) -> bool { ... } }
Expand description

A trait to specify how a specific event must be evaluated.

Required methods

Provided methods

Implementors

Stop searching when the time has converged to less than 0.1 seconds

Finds the slightest penumbra within 2%(i.e. 98% in visibility)

Stop searching when the time has converged to less than 0.1 seconds

Finds the darkest part of an eclipse within 2% of penumbra (i.e. 98% in shadow)

Stop searching when the time has converged to less than 0.1 seconds

Finds the slightest penumbra within 2%(i.e. 98% in visibility)

Stop searching when the time has converged to less than 0.1 seconds

Finds the darkest part of an eclipse within 2% of penumbra (i.e. 98% in shadow)