pub struct Correction {
pub impulse_scale: f64,
pub drag_scale: f64,
}Expand description
The two scales of a correction.
Fields§
§impulse_scale: f64Every motor’s total impulse over its rated impulse, at the rated burn time.
drag_scale: f64The drag over the model’s.
Implementations§
Source§impl Correction
impl Correction
Sourcepub const NONE: Self
pub const NONE: Self
No correction: both scales 1. Flown, it must be the flight its report flies.
Sourcepub fn rocket(&self, rocket: &Rocket) -> Result<Rocket, AnalysisError>
pub fn rocket(&self, rocket: &Rocket) -> Result<Rocket, AnalysisError>
rocket with every motor of every configuration scaled by the impulse scale.
§Errors
A scale that isn’t a positive number, or a motor whose propellant can’t be scaled.
Sourcepub fn simulation(&self, simulation: Simulation) -> Result<Simulation, SimError>
pub fn simulation(&self, simulation: Simulation) -> Result<Simulation, SimError>
simulation with its drag scaled by the drag scale.
§Errors
A drag scale that isn’t a positive number.
Trait Implementations§
Source§impl Clone for Correction
impl Clone for Correction
Source§fn clone(&self) -> Correction
fn clone(&self) -> Correction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Correction
Source§impl Debug for Correction
impl Debug for Correction
Source§impl<'de> Deserialize<'de> for Correction
impl<'de> Deserialize<'de> for Correction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Correction
impl PartialEq for Correction
Source§fn eq(&self, other: &Correction) -> bool
fn eq(&self, other: &Correction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Correction
impl Serialize for Correction
impl StructuralPartialEq for Correction
Auto Trait Implementations§
impl Freeze for Correction
impl RefUnwindSafe for Correction
impl Send for Correction
impl Sync for Correction
impl Unpin for Correction
impl UnsafeUnpin for Correction
impl UnwindSafe for Correction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more