Struct clipping::gh::CPolygon
[−]
[src]
pub struct CPolygon { /* fields omitted */ }
Methods
impl CPolygon
[src]
fn new() -> Self
[src]
Create a new empty polygon
fn from_vec(vec: &Vec<[f64; 2]>) -> Self
[src]
Create a polygon from a list of points
fn points(&self) -> Vec<[f64; 2]>
[src]
Return the polygon points as a list of points, clear consecutive equals points
fn clip(
&mut self,
poly: &mut CPolygon,
s_entry: bool,
c_entry: bool
) -> Vec<Vec<[f64; 2]>>
[src]
&mut self,
poly: &mut CPolygon,
s_entry: bool,
c_entry: bool
) -> Vec<Vec<[f64; 2]>>