Robust Line Segment Intersection
JSON →This library, `robust-segment-intersect`, provides an exact arithmetic predicate to rigorously determine if two closed 2D line segments intersect. It is designed to overcome floating-point inaccuracies common in geometric computations, ensuring reliable results even in degenerate cases where endpoints are collinear or nearly so. The current stable version is 1.0.1, last published in 2014. As an older package, it is considered abandoned, meaning active development and new features are unlikely, though it remains functional for its specific purpose. Its primary differentiator lies in its 'exact arithmetic' approach, which prioritizes correctness over raw speed for applications requiring absolute precision in geometric intersection tests, such as CAD, GIS, and advanced rendering algorithms. Users should be aware of its CommonJS module format and consider its age when integrating into modern projects.
Traffic · last 30 days ↓40% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇬🇧 United Kingdom · 🇳🇱 Netherlands · 🇩🇪 Germany