pub struct Matrix4Tween {
pub begin: Option<Matrix4>,
pub end: Option<Matrix4>,
}Expand description
An interpolation between two Matrix4s.
This class specializes the interpolation of Tween<Matrix4> to be
appropriate for transformation matrices.
Currently this class works only for translations.
See Tween for a discussion on how to use interpolation objects.
Like EdgeInsetsTween, this one is a value rather than an arena object (see PORTING.md).
Fields§
§begin: Option<Matrix4>The value this variable has at the beginning of the animation.
end: Option<Matrix4>The value this variable has at the end of the animation.
Implementations§
Source§impl Matrix4Tween
impl Matrix4Tween
Trait Implementations§
Source§impl Animatable<Matrix> for Matrix4Tween
impl Animatable<Matrix> for Matrix4Tween
Source§fn transform(&self, _app: &App, t: f64) -> Matrix4
fn transform(&self, _app: &App, t: f64) -> Matrix4
Returns the value of the object at point
t. Read moreSource§fn evaluate(&self, app: &App, animation: AnyAnimation<f64>) -> Twhere
Self: Sized,
fn evaluate(&self, app: &App, animation: AnyAnimation<f64>) -> Twhere
Self: Sized,
The current value of this object for the given animation. Read more
Source§fn animate(
self,
app: &mut App,
parent: Retained<AnyAnimation<f64>>,
) -> Retained<AnyAnimation<T>>
fn animate( self, app: &mut App, parent: Retained<AnyAnimation<f64>>, ) -> Retained<AnyAnimation<T>>
Returns a new animation that is driven by the given animation but
that takes on values determined by this object. The new animation keeps
parent; whoever keeps the result keeps both.Source§fn chain<P>(self, parent: P) -> ChainedEvaluation<P, Self>
fn chain<P>(self, parent: P) -> ChainedEvaluation<P, Self>
Returns a new
Animatable whose value is determined by first
evaluating the given parent and then evaluating this object at the
result.Source§impl Clone for Matrix4Tween
impl Clone for Matrix4Tween
Source§impl Debug for Matrix4Tween
impl Debug for Matrix4Tween
Auto Trait Implementations§
impl Forget for Matrix4Tween
impl Freeze for Matrix4Tween
impl Move for Matrix4Tween
impl RefUnwindSafe for Matrix4Tween
impl Send for Matrix4Tween
impl Sync for Matrix4Tween
impl Unpin for Matrix4Tween
impl UnsafeUnpin for Matrix4Tween
impl UnwindSafe for Matrix4Tween
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