pub trait CartesianPoint2dFloat<N: Float = f64>: CartesianPoint2d<Num = N> {
// Provided method
fn distance(&self, other: &impl CartesianPoint2d<Num = N>) -> N { ... }
}Expand description
Methods that apply only when a point has float-type coordinates.
Provided Methods§
Sourcefn distance(&self, other: &impl CartesianPoint2d<Num = N>) -> N
fn distance(&self, other: &impl CartesianPoint2d<Num = N>) -> N
Euclidean distance between two points.
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.