Plane-sweep algorithms for intersecting geometric figures | Synapse