[]Trait amethyst_animation::InterpolationPrimitive

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

Loading content...

Provided methods

fn magnitude(&self) -> f32

fn normalize(&self) -> Self

Loading content...

Implementations on Foreign Types

impl InterpolationPrimitive for i64

impl InterpolationPrimitive for f64

impl InterpolationPrimitive for f32

impl InterpolationPrimitive for usize

impl InterpolationPrimitive for u64

impl InterpolationPrimitive for Vector3<f32>

fn magnitude(&self) -> f32

fn normalize(&self) -> Self

impl InterpolationPrimitive for isize

impl InterpolationPrimitive for [f32; 4]

fn magnitude(&self) -> f32

fn normalize(&self) -> Self

impl InterpolationPrimitive for u32

impl InterpolationPrimitive for i32

impl InterpolationPrimitive for [f32; 3]

fn magnitude(&self) -> f32

fn normalize(&self) -> Self

impl InterpolationPrimitive for Quaternion<f32>

fn magnitude(&self) -> f32

fn normalize(&self) -> Self

Loading content...

Implementors

impl InterpolationPrimitive for MaterialPrimitive[src]

impl InterpolationPrimitive for SpriteRenderPrimitive[src]

impl<S> InterpolationPrimitive for SamplerPrimitive<S> where
    S: Real + ToPrimitive + NumCast
[src]

Loading content...