Struct cppn::position::Position2d
[−]
[src]
pub struct Position2d(_);
Methods
impl Position2d
[src]
Trait Implementations
impl Position for Position2d
[src]
fn dims() -> usize
fn coords(&self) -> &[f64]
fn origin() -> Self
fn distance_square(&self, other: &Self) -> f64
fn distance(&self, other: &Self) -> f64
impl Interpolate for Position2d
[src]
fn interpolate(&self, other: &Self, t: f64) -> Self
Linearly interpolates between self
and other
. For t = 0.0 this should return self
. For t = 1.0 this should return other
. Read more