Trait building_blocks_core::point::point_traits::Distance[][src]

pub trait Distance: Point {
    fn l1_distance(self, other: Self) -> <Self as Point>::Scalar;
fn l2_distance_squared(self, other: Self) -> <Self as Point>::Scalar; }

Required methods

The L1 distance between points.

The square of the L2 (Euclidean) distance between points.

Implementors