pub struct PointKeyframe {
pub time: MediaTime,
pub value: Vec2,
pub interpolation: Interpolation,
pub out_tangent: Vec2,
pub in_tangent: Vec2,
}Expand description
One keyframe of an AnimatedPoint.
Fields§
§time: MediaTimeTimestamp of this value, as a Keyframe’s.
value: Vec2Value at time.
interpolation: InterpolationInterpolation from this keyframe to its successor: how fast the value travels along the way there.
out_tangent: Vec2The start of the way to the next keyframe’s value, relative to this value: the curve’s first control point.
in_tangent: Vec2The end of the way here from the previous keyframe’s value, relative to this value: that curve’s second control point.
Trait Implementations§
Source§impl Clone for PointKeyframe
impl Clone for PointKeyframe
Source§impl Debug for PointKeyframe
impl Debug for PointKeyframe
Source§impl<'de> Deserialize<'de> for PointKeyframe
impl<'de> Deserialize<'de> for PointKeyframe
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 PointKeyframe
impl PartialEq for PointKeyframe
Source§impl Serialize for PointKeyframe
impl Serialize for PointKeyframe
impl StructuralPartialEq for PointKeyframe
Auto Trait Implementations§
impl Freeze for PointKeyframe
impl RefUnwindSafe for PointKeyframe
impl Send for PointKeyframe
impl Sync for PointKeyframe
impl Unpin for PointKeyframe
impl UnsafeUnpin for PointKeyframe
impl UnwindSafe for PointKeyframe
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