CartesianContour

Trait CartesianContour 

Source
pub trait CartesianContour<P: CartesianPoint2d + Copy>: Contour<Point = P> {
    // Provided method
    fn distance_to_point_sq<Point>(&self, point: &Point) -> Option<P::Num>
       where Self: Sized,
             Point: CartesianPoint2d<Num = P::Num> { ... }
}
Expand description

Methods for contours in 2d cartesian space. This trait is auto-implemented if applicable.

Provided Methods§

Source

fn distance_to_point_sq<Point>(&self, point: &Point) -> Option<P::Num>
where Self: Sized, Point: CartesianPoint2d<Num = P::Num>,

Squared distance from the point to the closest segment of the contour.

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.

Implementors§

Source§

impl<T: Contour<Point = P>, P: CartesianPoint2d + Copy> CartesianContour<P> for T