polyops 0.1.1

Fast Martinez-Rueda polygon clipping: Boolean operations (intersection, union, difference, xor) on polygons and multipolygons over GeoJSON-shaped coordinates. Pure-Rust port of martinez-polygon-clipping.
1
{"subject":[[[-1,1],[1,1],[1,-1],[-1,-1],[-1,-0.9],[0.9,-0.9],[0.9,0.9],[-1,0.9],[-1,1]]],"clipping":[[[-1,1],[-0.9,1],[-0.9,-1],[-1,-1],[-1,1]]],"expected":[[[[-1,-1],[-0.9,-1],[1,-1],[1,1],[-0.9,1],[-1,1],[-1,0.9],[-1,-0.9],[-1,-1]],[[-0.9,-0.9],[0.9,-0.9],[0.9,0.9],[-0.9,0.9],[-0.9,-0.9]]]]}