pub trait ToPolygon<T> {
    // Required method
    fn to_polygon(&self) -> Polygon<T>;
}
Expand description

Trait for the conversion of a geometric shape to a polygon.

Required Methods§

fn to_polygon(&self) -> Polygon<T>

Convert the geometric object into a polygon.

Implementors§

§

impl<T> ToPolygon<T> for Geometry<T>where T: CoordinateType + NumCast,

§

impl<T> ToPolygon<T> for Rect<T>where T: Copy,