Abstract

The main result of this paper is a new algorithm that tests whether two line segments in the plane intersect. If the segments are defined using the coordinates of the endpoints in single-precision floating-point arithmetic, then the result of the test is exact. The equations of the segments are given in parametric form using the endpoint coordinates, and an equation whose solution would provide the coordinates of the intersection is developed. Interval arithmetic is then used to compute an inclusion of the coordinates of the intersection point. This inclusion is often sufficient to decide the intersection test. When it is not, a method for determining the exact sign of a sum is applied to the equations at an earlier stage of the solution process. Experimental results are presented that show that the number of intersections that cannot be resolved using interval tools is fairly large in close to degenerate configurations of the segments and that the algorithm is significantly faster than an algorithm implemented using exact arithmetic.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.