#[repr(transparent)]pub struct Contour { /* private fields */ }
Expand description
Contour object
Implementations§
source§impl Contour
impl Contour
sourcepub fn add_edge(&mut self, edge: &EdgeHolder)
pub fn add_edge(&mut self, edge: &EdgeHolder)
Adds an edge to the contour.
sourcepub fn add_edge_mut(&mut self) -> &mut EdgeHolder
pub fn add_edge_mut(&mut self) -> &mut EdgeHolder
Creates a new edge in the contour and returns its reference.
sourcepub fn add_segment(&mut self, segment: impl EdgeSegment)
pub fn add_segment(&mut self, segment: impl EdgeSegment)
Adds segment as an edge to the contour.
sourcepub fn bound_miters(
&self,
bound: &mut Bound<f64>,
border: f64,
miter_limit: f64,
polarity: Polarity
)
pub fn bound_miters(
&self,
bound: &mut Bound<f64>,
border: f64,
miter_limit: f64,
polarity: Polarity
)
Adjusts the bounding box to fit the contour border’s mitered corners.