Trait nalgebra::FloatPnt
[−]
[src]
pub trait FloatPnt<N: BaseFloat, V: Norm<N>>: NumPnt<N, V> + Sized { fn sqdist(&self, other: &Self) -> N { ... } fn dist(&self, other: &Self) -> N { ... } }
Trait of points with components implementing the BaseFloat
trait.
Provided Methods
fn sqdist(&self, other: &Self) -> N
Computes the square distance between two points.
fn dist(&self, other: &Self) -> N
Computes the distance between two points.
Implementors
impl<N> FloatPnt<N, Vec1<N>> for Pnt1<N> where N: BaseFloat + ApproxEq<N>
impl<N> FloatPnt<N, Vec2<N>> for Pnt2<N> where N: BaseFloat + ApproxEq<N>
impl<N> FloatPnt<N, Vec3<N>> for Pnt3<N> where N: BaseFloat + ApproxEq<N>
impl<N> FloatPnt<N, Vec4<N>> for Pnt4<N> where N: BaseFloat + ApproxEq<N>
impl<N> FloatPnt<N, Vec5<N>> for Pnt5<N> where N: BaseFloat + ApproxEq<N>
impl<N> FloatPnt<N, Vec6<N>> for Pnt6<N> where N: BaseFloat + ApproxEq<N>