[−][src]Trait building_blocks_core::point::Distance
Required methods
fn l1_distance(&self, other: &Self) -> Self::Scalar
The L1 distance between points.
fn l2_distance_squared(&self, other: &Self) -> Self::Scalar
The square of the L2 (Euclidean) distance between points.
Implementors
impl<T> Distance for Point2<T> where
T: Copy + Signed + Add<Output = T> + Pow<u16, Output = T>,
Point2<T>: Point<Scalar = T>,
[src]
T: Copy + Signed + Add<Output = T> + Pow<u16, Output = T>,
Point2<T>: Point<Scalar = T>,
fn l1_distance(&self, other: &Self) -> Self::Scalar
[src]
fn l2_distance_squared(&self, other: &Self) -> Self::Scalar
[src]
impl<T> Distance for Point3<T> where
T: Copy + Signed + Add<Output = T> + Pow<u16, Output = T>,
Point3<T>: Point<Scalar = T>,
[src]
T: Copy + Signed + Add<Output = T> + Pow<u16, Output = T>,
Point3<T>: Point<Scalar = T>,