pub trait PointConcept<C: CoordinateConcept>: PointBase<C> {
// Provided methods
fn projected_distance(
&self,
other: &Self,
orient: Orientation2D,
) -> C::CoordinateDifference { ... }
fn manhattan_distance(&self, other: &Self) -> C::CoordinateDifference { ... }
fn distance_squared(&self, other: &Self) -> C::CoordinateDistance { ... }
fn euclidian_distance(&self, other: &Self) -> C::CoordinateDistance { ... }
}Expand description
Concept of a point in the Euclidean plane.
Provided Methods§
Sourcefn projected_distance(
&self,
other: &Self,
orient: Orientation2D,
) -> C::CoordinateDifference
fn projected_distance( &self, other: &Self, orient: Orientation2D, ) -> C::CoordinateDifference
Compute the x or y component of the vector from the point to the other point.
Sourcefn manhattan_distance(&self, other: &Self) -> C::CoordinateDifference
fn manhattan_distance(&self, other: &Self) -> C::CoordinateDifference
Compute the 1-norm of the vector pointing from the point to the other.
Sourcefn distance_squared(&self, other: &Self) -> C::CoordinateDistance
fn distance_squared(&self, other: &Self) -> C::CoordinateDistance
Squared euclidean distance.
Sourcefn euclidian_distance(&self, other: &Self) -> C::CoordinateDistance
fn euclidian_distance(&self, other: &Self) -> C::CoordinateDistance
Euclidean distance, i.e. 2-norm of the vector from the point to the other.
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.