Trait geomath::prelude::Interpolation[][src]

pub trait Interpolation {
    fn set_lerp(&mut self, other: &Self, s: f64) -> &mut Self;
fn set_herp(
        &mut self,
        other: &Self,
        other1: &Self,
        other2: &Self,
        s: f64
    ) -> &mut Self;
fn set_berp(
        &mut self,
        other: &Self,
        other1: &Self,
        other2: &Self,
        s: f64
    ) -> &mut Self; fn lerp(&self, other: &Self, s: f64) -> Self
    where
        Self: Copy + Clone
, { ... }
fn herp(
        &mut self,
        other: &Self,
        other1: &Self,
        other2: &Self,
        s: f64
    ) -> Self
    where
        Self: Copy + Clone
, { ... }
fn berp(
        &mut self,
        other: &Self,
        other1: &Self,
        other2: &Self,
        s: f64
    ) -> Self
    where
        Self: Copy + Clone
, { ... } }
Expand description

Interpolations between two objects

Required methods

Set the linear interpolation

Set the Hermite’s interpolation

Set the Bezier’s interpolation

Provided methods

Get linear interpolation

Get cubic Hermite’s interpolation, ie. with two tangent values

Get cubic Bezier’s interpolation, ie. with two control points

Implementors