pub struct Key {
pub at: f32,
pub value: [f32; 4],
pub handle_in: [f32; 4],
pub handle_out: [f32; 4],
}Expand description
One key of a Curve.
Fields§
§at: f32The argument value of the key, seconds, ascending along the curve.
value: [f32; 4]The value at the key, in the curve’s components (the rest 0).
handle_in: [f32; 4]For Interpolation::Bezier: the value offset of the incoming handle (subtracted from this key’s value to give the
segment’s second control point); 0 otherwise.
handle_out: [f32; 4]For Interpolation::Bezier: the value offset of the outgoing handle.
Trait Implementations§
impl Copy for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Forget for Key
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