[−][src]Trait amethyst_animation::InterpolationPrimitive
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
Loading content...Implementations on Foreign Types
impl InterpolationPrimitive for i32
[src]
fn add(&self, other: &i32) -> i32
[src]
fn sub(&self, other: &i32) -> i32
[src]
fn mul(&self, scalar: f32) -> i32
[src]
fn dot(&self, other: &i32) -> f32
[src]
fn magnitude2(&self) -> f32
[src]
fn magnitude(&self) -> f32
[src]
fn normalize(&self) -> i32
[src]
impl InterpolationPrimitive for u32
[src]
fn add(&self, other: &u32) -> u32
[src]
fn sub(&self, other: &u32) -> u32
[src]
fn mul(&self, scalar: f32) -> u32
[src]
fn dot(&self, other: &u32) -> f32
[src]
fn magnitude2(&self) -> f32
[src]
fn magnitude(&self) -> f32
[src]
fn normalize(&self) -> u32
[src]
impl InterpolationPrimitive for [f32; 4]
[src]
fn add(&self, other: &[f32; 4]) -> [f32; 4]
[src]
fn sub(&self, other: &[f32; 4]) -> [f32; 4]
[src]
fn mul(&self, other: f32) -> [f32; 4]
[src]
fn dot(&self, other: &[f32; 4]) -> f32
[src]
fn magnitude2(&self) -> f32
[src]
impl InterpolationPrimitive for Quaternion<f32>
[src]
fn add(&self, other: &Quaternion<f32>) -> Quaternion<f32>
[src]
fn sub(&self, other: &Quaternion<f32>) -> Quaternion<f32>
[src]
fn mul(&self, other: f32) -> Quaternion<f32>
[src]
fn dot(&self, other: &Quaternion<f32>) -> f32
[src]
fn magnitude2(&self) -> f32
[src]
impl InterpolationPrimitive for isize
[src]
fn add(&self, other: &isize) -> isize
[src]
fn sub(&self, other: &isize) -> isize
[src]
fn mul(&self, scalar: f32) -> isize
[src]
fn dot(&self, other: &isize) -> f32
[src]
fn magnitude2(&self) -> f32
[src]
fn magnitude(&self) -> f32
[src]
fn normalize(&self) -> isize
[src]
impl InterpolationPrimitive for usize
[src]
fn add(&self, other: &usize) -> usize
[src]
fn sub(&self, other: &usize) -> usize
[src]
fn mul(&self, scalar: f32) -> usize
[src]
fn dot(&self, other: &usize) -> f32
[src]
fn magnitude2(&self) -> f32
[src]
fn magnitude(&self) -> f32
[src]
fn normalize(&self) -> usize
[src]
impl InterpolationPrimitive for u64
[src]
fn add(&self, other: &u64) -> u64
[src]
fn sub(&self, other: &u64) -> u64
[src]
fn mul(&self, scalar: f32) -> u64
[src]
fn dot(&self, other: &u64) -> f32
[src]
fn magnitude2(&self) -> f32
[src]
fn magnitude(&self) -> f32
[src]
fn normalize(&self) -> u64
[src]
impl InterpolationPrimitive for f32
[src]
fn add(&self, other: &f32) -> f32
[src]
fn sub(&self, other: &f32) -> f32
[src]
fn mul(&self, scalar: f32) -> f32
[src]
fn dot(&self, other: &f32) -> f32
[src]
fn magnitude2(&self) -> f32
[src]
fn magnitude(&self) -> f32
[src]
fn normalize(&self) -> f32
[src]
impl InterpolationPrimitive for [f32; 3]
[src]
fn add(&self, other: &[f32; 3]) -> [f32; 3]
[src]
fn sub(&self, other: &[f32; 3]) -> [f32; 3]
[src]
fn mul(&self, other: f32) -> [f32; 3]
[src]
fn dot(&self, other: &[f32; 3]) -> f32
[src]
fn magnitude2(&self) -> f32
[src]
impl InterpolationPrimitive for i64
[src]
fn add(&self, other: &i64) -> i64
[src]
fn sub(&self, other: &i64) -> i64
[src]
fn mul(&self, scalar: f32) -> i64
[src]
fn dot(&self, other: &i64) -> f32
[src]
fn magnitude2(&self) -> f32
[src]
fn magnitude(&self) -> f32
[src]
fn normalize(&self) -> i64
[src]
impl InterpolationPrimitive for f64
[src]
fn add(&self, other: &f64) -> f64
[src]
fn sub(&self, other: &f64) -> f64
[src]
fn mul(&self, scalar: f32) -> f64
[src]
fn dot(&self, other: &f64) -> f32
[src]
fn magnitude2(&self) -> f32
[src]
fn magnitude(&self) -> f32
[src]
fn normalize(&self) -> f64
[src]
impl InterpolationPrimitive for Vector3<f32>
[src]
fn add(&self, other: &Vector3<f32>) -> Vector3<f32>
[src]
fn sub(&self, other: &Vector3<f32>) -> Vector3<f32>
[src]
fn mul(&self, other: f32) -> Vector3<f32>
[src]
fn dot(&self, other: &Vector3<f32>) -> f32
[src]
fn magnitude2(&self) -> f32
[src]
Implementors
impl InterpolationPrimitive for MaterialPrimitive
[src]
fn add(&self, _: &Self) -> Self
[src]
fn sub(&self, _: &Self) -> Self
[src]
fn mul(&self, _: f32) -> Self
[src]
fn dot(&self, _: &Self) -> f32
[src]
fn magnitude2(&self) -> f32
[src]
fn magnitude(&self) -> f32
[src]
fn normalize(&self) -> Self
[src]
impl InterpolationPrimitive for SpriteRenderPrimitive
[src]
fn add(&self, _: &Self) -> Self
[src]
fn sub(&self, _: &Self) -> Self
[src]
fn mul(&self, _: f32) -> Self
[src]
fn dot(&self, _: &Self) -> f32
[src]
fn magnitude2(&self) -> f32
[src]
fn magnitude(&self) -> f32
[src]
fn normalize(&self) -> Self
[src]
impl<S> InterpolationPrimitive for SamplerPrimitive<S> where
S: RealField + SubsetOf<f32> + SupersetOf<f32>,
[src]
S: RealField + SubsetOf<f32> + SupersetOf<f32>,