mapbox/lineclip · GitHub
▻https://github.com/mapbox/lineclip
A very fast #javascript library for #clipping #polylines and #polygons by a bounding box. uses Cohen-Sutherland algorithm for line clipping uses Sutherland-Hodgman algorithm for polygon clipping
#map