Trait na::FloatPnt

source ·
pub trait FloatPnt: NumPnt + Neg<Output = Self>where
    <Self as NumPnt>::Field: RealField + Neg<Output = <Self as NumPnt>::Field>,
    <Self as NumPnt>::Coordinates: Neg<Output = <Self as NumPnt>::Coordinates>,{
    // Required methods
    fn origin() -> Self;
    fn distance(&self, b: &Self) -> Self::Field;
    fn distance_squared(&self, b: &Self) -> Self::Field;
}
Expand description

Trait of vector with components implementing the RealField trait.

Required Methods§

source

fn origin() -> Self

source

fn distance(&self, b: &Self) -> Self::Field

source

fn distance_squared(&self, b: &Self) -> Self::Field

Implementors§