pub struct Key {
pub time: f32,
pub value: f32,
pub in_slope: f32,
pub out_slope: f32,
}Expand description
A key of a curve: its time (seconds), value and the slopes (per second) into and out of it. An infinite outgoing slope is a step to the next key.
Fields§
§time: f32Seconds from the clip’s start.
value: f32The curve’s value at time.
in_slope: f32The slope arriving at the key, per second.
out_slope: f32The slope leaving the key, per second; infinite for a step.
Trait Implementations§
impl Copy for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl UnwindSafe for Key
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