pub struct ClipperD {
pub base: ClipperBase,
/* private fields */
}Expand description
Double-precision polygon clipper that scales to int64 internally Direct port from clipper.engine.h line 520
Fields§
§base: ClipperBaseImplementations§
Source§impl ClipperD
impl ClipperD
pub fn new(precision: i32) -> Self
pub fn scale(&self) -> f64
pub fn inv_scale(&self) -> f64
Sourcepub fn add_subject(&mut self, subjects: &PathsD)
pub fn add_subject(&mut self, subjects: &PathsD)
Add subject paths (double precision)
Sourcepub fn add_open_subject(&mut self, open_subjects: &PathsD)
pub fn add_open_subject(&mut self, open_subjects: &PathsD)
Add open subject paths (double precision)
pub fn error_code(&self) -> i32
pub fn set_preserve_collinear(&mut self, val: bool)
pub fn preserve_collinear(&self) -> bool
pub fn set_reverse_solution(&mut self, val: bool)
pub fn reverse_solution(&self) -> bool
pub fn clear(&mut self)
Auto Trait Implementations§
impl Freeze for ClipperD
impl RefUnwindSafe for ClipperD
impl Send for ClipperD
impl Sync for ClipperD
impl Unpin for ClipperD
impl UnwindSafe for ClipperD
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more