Type Alias parry2d_f64::shape::RoundConvexPolygon

source ·
pub type RoundConvexPolygon = RoundShape<ConvexPolygon>;
Expand description

A convex polygon dilated by a sphere (so it has round corners).

Aliased Type§

struct RoundConvexPolygon {
    pub inner_shape: ConvexPolygon,
    pub border_radius: f64,
}

Fields§

§inner_shape: ConvexPolygon

The shape being rounded.

§border_radius: f64

The radius of the rounded border.

Implementations§

source§

impl RoundConvexPolygon

source

pub fn to_polyline(&self, border_subdivs: u32) -> Vec<Point2<Real>>

Discretize the boundary of this round convex polygon as a polygonal line.