pub struct Keyframe<T: AnimCurveValue> {
pub time: Duration,
pub value: T,
pub in_tangent: T,
pub out_tangent: T,
}Expand description
One sparse animation-curve sample.
Tangents are expressed per second and default to the value type’s zero.
For quaternion curves the zero tangent is the all-zero quaternion, while
value defaults to identity.
Donor: oa::Keyframe<T>.
Fields§
§time: Duration§value: T§in_tangent: T§out_tangent: TTrait Implementations§
impl<T: Copy + AnimCurveValue> Copy for Keyframe<T>
Source§impl<T: AnimCurveValue> Default for Keyframe<T>
impl<T: AnimCurveValue> Default for Keyframe<T>
impl<T: PartialEq + AnimCurveValue> StructuralPartialEq for Keyframe<T>
Auto Trait Implementations§
impl<T> Forget for Keyframe<T>
impl<T> Freeze for Keyframe<T>where
T: Freeze,
impl<T> Move for Keyframe<T>
impl<T> RefUnwindSafe for Keyframe<T>where
T: RefUnwindSafe,
impl<T> Send for Keyframe<T>where
T: Send,
impl<T> Sync for Keyframe<T>where
T: Sync,
impl<T> Unpin for Keyframe<T>where
T: Unpin,
impl<T> UnsafeUnpin for Keyframe<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Keyframe<T>where
T: UnwindSafe,
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