[][src]Struct tray_rust::linalg::animated_transform::AnimatedTransform

pub struct AnimatedTransform { /* fields omitted */ }

An animated transform that blends between the keyframes in its transformation list over time.

Methods

impl AnimatedTransform[src]

pub fn with_keyframes(
    keyframes: Vec<Keyframe>,
    knots: Vec<f32>,
    degree: usize
) -> AnimatedTransform
[src]

Create an animated transformation blending between the passed keyframes

pub fn unanimated(transform: &Transform) -> AnimatedTransform[src]

pub fn transform(&self, time: f32) -> Transform[src]

Compute the transformation matrix for the animation at some time point using B-Spline interpolation.

pub fn animation_bounds(&self, b: &BBox, start: f32, end: f32) -> BBox[src]

Compute the bounds of the box moving through the animation sequence by sampling time

pub fn is_animated(&self) -> bool[src]

Check if the transform is actually animated

Trait Implementations

impl Clone for AnimatedTransform[src]

impl Debug for AnimatedTransform[src]

impl Mul<AnimatedTransform> for AnimatedTransform[src]

type Output = AnimatedTransform

The resulting type after applying the * operator.

fn mul(self, rhs: AnimatedTransform) -> AnimatedTransform[src]

Compose the animated transformations

Auto Trait Implementations

impl Send for AnimatedTransform

impl Sync for AnimatedTransform

impl Unpin for AnimatedTransform

impl UnwindSafe for AnimatedTransform

impl RefUnwindSafe for AnimatedTransform

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T[src]