poly_clip function

Polygon Clipping

Polygon Clipping

This function is provided to efficiently and safely handle clipping operations. It wraps around polyclip::polyclip(), which is an interface to the Clipper C++ library.

poly_clip(a, b, op = c("intersection", "union", "minus", "xor"))

Arguments

  • a: polygon
  • b: polygon
  • op: operation

Returns

A list of lists.