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
fn l1_distance(self, other: Self) -> <Self as Point>::Scalar
fn l1_distance(self, other: Self) -> <Self as Point>::Scalar
The L1 distance between points.
fn l2_distance_squared(self, other: Self) -> <Self as Point>::Scalar
fn l2_distance_squared(self, other: Self) -> <Self as Point>::Scalar
The square of the L2 (Euclidean) distance between points.