#[repr(C)]pub struct PolyChain { /* private fields */ }
Expand description
A polygonal chain that is part of a Sketch
Implementations§
source§impl PolyChain
impl PolyChain
sourcepub fn from_segments(segments: Vec<SketchSegment>) -> Self
pub fn from_segments(segments: Vec<SketchSegment>) -> Self
Construct an instance from a list of segments
sourcepub fn from_points(points: Vec<[f64; 2]>) -> Self
pub fn from_points(points: Vec<[f64; 2]>) -> Self
Construct an instance from a list of points
sourcepub fn to_segments(&self) -> Vec<SketchSegment>
pub fn to_segments(&self) -> Vec<SketchSegment>
Return the points that define the polygonal chain