arXiv · 2201.11542
An improved judgement algorithm of point in-out convex polygons
Abstract
This paper proposed a method to judge whether the point is inside or outside of the simple convex polygon by the intersection of the vertical line. It determined the point to an area enclosed by two straight lines, then convert the problem of determining whether a point is inside or outside of a convex polygon into the problem of determining whether a point is inside or outside of a quadrilateral. After that, use the ray method to judge it. The complexity of this algorithm is O(1) to O(n). As the experimental results show, the algorithm has fewer intersections and greatly improves the efficiency of the judgment.
Explore related subjects
Keep this discovery
Sun Yixuan, Zhu Zhehao. 2022-01-27. An improved judgement algorithm of point in-out convex polygons. https://arxiv.org/abs/2201.11542
Cite the original work for its findings. Save a collection to share your selection of sources.