A reliable test for inclusion of a point in a polygon
暂无分享,去创建一个
This paper takes a careful look at a well-known implementation of an algorithm that tests a point in the plane for inclusion in a given polygon. The implementation, coded in C++, appears in Robert Sedgewick's highly regarded book, Algorithms in C++, and has a number of flaws associated with special cases. The paper discusses the problems and a reliable implementation of the algorithm is developed.
[1] Robert Sedgewick,et al. Algorithms in C , 1990 .
[2] Michael Ian Shamos,et al. Computational geometry: an introduction , 1985 .
[3] Henry D. Shapiro,et al. Algorithms from P to NP , 1991 .
[4] Henry D. Shapiro,et al. Algorithms from P to NP (vol. 1): design and efficiency , 1991 .
[5] R. K. Shyamasundar,et al. Introduction to algorithms , 1996 .