pub enum MotionSegment {
Linear {
start: MotionPoint,
end: MotionPoint,
},
Bezier {
start: MotionPoint,
control1: MotionPoint,
control2: MotionPoint,
end: MotionPoint,
},
Stepped {
start: MotionPoint,
end: MotionPoint,
},
InverseStepped {
start: MotionPoint,
end: MotionPoint,
},
}Expand description
Segment interpolation mode between two motion points.
Variants§
Linear
Linear interpolation between start and end.
Bezier
Cubic Bezier interpolation.
Fields
§
start: MotionPointStart point.
§
control1: MotionPointFirst control point.
§
control2: MotionPointSecond control point.
§
end: MotionPointEnd point.
Stepped
Holds the start value until the segment end.
InverseStepped
Holds the end value for the segment.
Implementations§
Trait Implementations§
Source§impl Clone for MotionSegment
impl Clone for MotionSegment
Source§fn clone(&self) -> MotionSegment
fn clone(&self) -> MotionSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MotionSegment
Source§impl Debug for MotionSegment
impl Debug for MotionSegment
Source§impl PartialEq for MotionSegment
impl PartialEq for MotionSegment
impl StructuralPartialEq for MotionSegment
Auto Trait Implementations§
impl Freeze for MotionSegment
impl RefUnwindSafe for MotionSegment
impl Send for MotionSegment
impl Sync for MotionSegment
impl Unpin for MotionSegment
impl UnsafeUnpin for MotionSegment
impl UnwindSafe for MotionSegment
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