Trait geo_clipper::Clipper[][src]

pub trait Clipper {
    fn difference<T: ToOwnedPolygon + ClosedPoly + ?Sized>(
        &self,
        other: &T,
        factor: f64
    ) -> MultiPolygon<f64>;
fn intersection<T: ToOwnedPolygon + ClosedPoly + ?Sized>(
        &self,
        other: &T,
        factor: f64
    ) -> MultiPolygon<f64>;
fn union<T: ToOwnedPolygon + ClosedPoly + ?Sized>(
        &self,
        other: &T,
        factor: f64
    ) -> MultiPolygon<f64>;
fn xor<T: ToOwnedPolygon + ClosedPoly + ?Sized>(
        &self,
        other: &T,
        factor: f64
    ) -> MultiPolygon<f64>;
fn offset(
        &self,
        delta: f64,
        join_type: JoinType,
        end_type: EndType,
        factor: f64
    ) -> MultiPolygon<f64>; }
Expand description

This trait defines the boolean and offset operations on polygons

The factor parameter in its methods is used to scale shapes before and after applying the operation to avoid precision loss since Clipper (the underlaying library) performs integer computation.

Required methods

Implementors