Skip to main content

FloatPoint

Trait FloatPoint 

Source
pub trait FloatPoint<F: Float, const DIM: usize> {
    // Required methods
    fn squared_eucledian(&self, other: &Self) -> F;
    fn distance_to_space(
        &self,
        min_bounds: &[F; DIM],
        max_bounds: &[F; DIM],
    ) -> F;
}

Required Methods§

Source

fn squared_eucledian(&self, other: &Self) -> F

Source

fn distance_to_space(&self, min_bounds: &[F; DIM], max_bounds: &[F; DIM]) -> F

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.

Implementors§

Source§

impl<F: Float, const DIM: usize> FloatPoint<F, DIM> for Point<F, DIM>