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.
翻译:本文建议了一种方法来判断点在垂直线交叉点的简单锥形多边形内外。 它确定了点在两条直线的区域内, 然后将确定点在锥体多边形内外的问题转换成确定点在四边形内外的问题。 之后, 使用射线方法来判断它。 这个算法的复杂性是O(1)至O(n)。 实验结果显示, 算法的交叉点较少, 并且大大提高了判决的效率。