Trait nalgebra::FloatPoint [] [src]

pub trait FloatPoint<N: BaseFloat>: NumPoint<N> + Sized where Self::Vector: Norm<N> {
    fn distance_squared(&self, other: &Self) -> N { ... }
    fn distance(&self, other: &Self) -> N { ... }
}

Trait of points with components implementing the BaseFloat trait.

Provided Methods

fn distance_squared(&self, other: &Self) -> N

Computes the square distance between two points.

fn distance(&self, other: &Self) -> N

Computes the distance between two points.

Implementors