[−][src]Struct tray_rust::linalg::animated_transform::AnimatedTransform
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]
keyframes: Vec<Keyframe>,
knots: Vec<f32>,
degree: usize
) -> AnimatedTransform
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]
fn clone(&self) -> AnimatedTransform
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,