Struct nyx_space::md::ui::Event[][src]

pub struct Event {
    pub parameter: StateParameter,
    pub desired_value: f64,
    pub epoch_precision: TimeUnit,
    pub value_precision: f64,
    pub in_frame: Option<(Frame, Arc<Cosm>)>,
}

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]

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]

impl EventEvaluator<SpacecraftState> for Event[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]

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> Pointable for T

type Init = T

The type for initializers.

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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>,