pub struct RotatingAnimation<T: RotatingRequirement> {
src: T,
angle: f64,
axis: DVec3,
point: DVec3,
}Expand description
Rotation animation.
Unlike Morph which linearly interpolates between
start and end states, this animation applies incremental rotation at each frame,
producing a true circular arc motion.
Fields§
§src: T§angle: f64§axis: DVec3§point: DVec3Implementations§
Source§impl<T: RotatingRequirement> RotatingAnimation<T>
impl<T: RotatingRequirement> RotatingAnimation<T>
Trait Implementations§
Source§impl<T: RotatingRequirement> Eval<T> for RotatingAnimation<T>
impl<T: RotatingRequirement> Eval<T> for RotatingAnimation<T>
Source§fn eval_alpha(&self, alpha: f64) -> T
fn eval_alpha(&self, alpha: f64) -> T
Evaluates at the given progress value
alpha in range [0, 1].Source§fn into_animation_cell(self) -> AnimationCell<T>where
Self: Sized + 'static,
fn into_animation_cell(self) -> AnimationCell<T>where
Self: Sized + 'static,
Construct an
AnimationCell<T> with default AnimationInfoAuto Trait Implementations§
impl<T> Freeze for RotatingAnimation<T>where
T: Freeze,
impl<T> RefUnwindSafe for RotatingAnimation<T>where
T: RefUnwindSafe,
impl<T> Send for RotatingAnimation<T>where
T: Send,
impl<T> Sync for RotatingAnimation<T>where
T: Sync,
impl<T> Unpin for RotatingAnimation<T>where
T: Unpin,
impl<T> UnwindSafe for RotatingAnimation<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more