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

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: Unit

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

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.

Match a specific event for the parameter to hit the specified value with the provided tolerance on the value

Match a specific event for the parameter to hit the specified value with the provided tolerance on the value and time

Match the periapasis i.e. True Anomaly == 0

Match the apoapasis i.e. True Anomaly == 180

Match a specific event in another frame, using the default epoch precision and value.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Method to serialize generic items, slices, and slices of Vecs. Adds square brackets around Vecs (prettier lists). Implementation code is in printing.rs. Read more

Method to serialize generic items, slices, and slices of Vecs. Implementation code is in printing.rs. Read more

Printable in red

Printable in green

Printable in blue

Printable in yellow

Printable in magenta

Printable in cyan

Method to write vector(s) to file f (space separated, without brackets). Passes up io errors Read more

Method to print vector(s) to stdout (space separated,without brackets).

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.