Trait amethyst_animation::InterpolationPrimitive [−][src]
pub trait InterpolationPrimitive { fn add(&self, other: &Self) -> Self; fn sub(&self, other: &Self) -> Self; fn mul(&self, scalar: f32) -> Self; fn dot(&self, other: &Self) -> f32; fn magnitude2(&self) -> f32; fn magnitude(&self) -> f32 { ... } fn normalize(&self) -> Self { ... } }
Interpolation primitive, defines basic arithmetic needed for interpolation.
Required Methods
fn add(&self, other: &Self) -> Self
fn sub(&self, other: &Self) -> Self
fn mul(&self, scalar: f32) -> Self
fn dot(&self, other: &Self) -> f32
fn magnitude2(&self) -> f32
Provided Methods
Implementations on Foreign Types
impl InterpolationPrimitive for i32
[src]
impl InterpolationPrimitive for i32
impl InterpolationPrimitive for u64
[src]
impl InterpolationPrimitive for u64
impl InterpolationPrimitive for Quaternion<f32>
[src]
impl InterpolationPrimitive for Quaternion<f32>
fn add(&self, other: &Quaternion<f32>) -> Quaternion<f32>
[src]
fn add(&self, other: &Quaternion<f32>) -> Quaternion<f32>
fn sub(&self, other: &Quaternion<f32>) -> Quaternion<f32>
[src]
fn sub(&self, other: &Quaternion<f32>) -> Quaternion<f32>
fn mul(&self, other: f32) -> Quaternion<f32>
[src]
fn mul(&self, other: f32) -> Quaternion<f32>
fn dot(&self, other: &Quaternion<f32>) -> f32
[src]
fn dot(&self, other: &Quaternion<f32>) -> f32
fn magnitude2(&self) -> f32
[src]
fn magnitude2(&self) -> f32
fn magnitude(&self) -> f32
[src]
fn magnitude(&self) -> f32
fn normalize(&self) -> Self
[src]
fn normalize(&self) -> Self
impl InterpolationPrimitive for f32
[src]
impl InterpolationPrimitive for f32
impl InterpolationPrimitive for i64
[src]
impl InterpolationPrimitive for i64
impl InterpolationPrimitive for isize
[src]
impl InterpolationPrimitive for isize
impl InterpolationPrimitive for [f32; 3]
[src]
impl InterpolationPrimitive for [f32; 3]
impl InterpolationPrimitive for u32
[src]
impl InterpolationPrimitive for u32
impl InterpolationPrimitive for usize
[src]
impl InterpolationPrimitive for usize
impl InterpolationPrimitive for [f32; 4]
[src]
impl InterpolationPrimitive for [f32; 4]
impl InterpolationPrimitive for Vector3<f32>
[src]
impl InterpolationPrimitive for Vector3<f32>
fn add(&self, other: &Vector3<f32>) -> Vector3<f32>
[src]
fn add(&self, other: &Vector3<f32>) -> Vector3<f32>
fn sub(&self, other: &Vector3<f32>) -> Vector3<f32>
[src]
fn sub(&self, other: &Vector3<f32>) -> Vector3<f32>
fn mul(&self, other: f32) -> Vector3<f32>
[src]
fn mul(&self, other: f32) -> Vector3<f32>
fn dot(&self, other: &Vector3<f32>) -> f32
[src]
fn dot(&self, other: &Vector3<f32>) -> f32
fn magnitude2(&self) -> f32
[src]
fn magnitude2(&self) -> f32
fn magnitude(&self) -> f32
[src]
fn magnitude(&self) -> f32
fn normalize(&self) -> Self
[src]
fn normalize(&self) -> Self
impl InterpolationPrimitive for f64
[src]
impl InterpolationPrimitive for f64
Implementors
impl InterpolationPrimitive for MaterialPrimitive
impl<S> InterpolationPrimitive for SamplerPrimitive<S> where
S: BaseNum,