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§
fn origin() -> Self
fn distance(&self, b: &Self) -> Self::Field
fn distance_squared(&self, b: &Self) -> Self::Field
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.