pub struct TimeAxis {
pub origin_s: f64,
pub mm_per_second: f64,
}Expand description
Explicit mapping from a domain time axis to model X coordinates (timelines).
x_mm = (t_seconds - origin_s) * mm_per_second. The mapping is the only place
where time becomes length; constraints work on time-dimensioned variables.
Fields§
§origin_s: f64Domain time shown at x = 0.
mm_per_second: f64Model millimetres per second.
Implementations§
Trait Implementations§
impl Copy for TimeAxis
Source§impl<'de> Deserialize<'de> for TimeAxis
impl<'de> Deserialize<'de> for TimeAxis
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
impl StructuralPartialEq for TimeAxis
Auto Trait Implementations§
impl Freeze for TimeAxis
impl RefUnwindSafe for TimeAxis
impl Send for TimeAxis
impl Sync for TimeAxis
impl Unpin for TimeAxis
impl UnsafeUnpin for TimeAxis
impl UnwindSafe for TimeAxis
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