DocumentCode
1860691
Title
An Algorithm for Judging Points Inside or Outside a Polygon
Author
Yuan Ye ; Fan Guangrui ; Ou Shiqi
Author_Institution
Sch. of Software Eng., HuaZhong Univ. of Sci. & Technol., Wuhan, China
fYear
2013
fDate
26-28 July 2013
Firstpage
690
Lastpage
693
Abstract
There are massive classic algorithms determining whether points are inside or outside of a polygon, such as Ray Casting, Cross Product Judging and Angle-judging, whereas these algorithms require discussing various kinds of special circumstances, or the determination needs transformation into other algorithms, which are inefficient and unstable. According to the knowledge of elementary geometry and graph theory, this article suggests a new algorithm, by using the method of drawing a vertical line through the point under judgment and judging the point with the method of substitution and then marking a variable. This algorithm requires neither discussing special circumstances, nor performing division operations, therefore the efficiency and stability of it is significantly increased. Many cases have proved that the efficiency of this algorithm is about 9.5 to 9.8 times of the classical ray algorithm.
Keywords
computational geometry; graph theory; angle-judging; classical ray algorithm; cross product judging; elementary geometry; graph theory; point judging; polygon; ray casting; substitution method; variable marking; vertical line drawing; Algorithm design and analysis; Casting; Classification algorithms; Design automation; Graphics; Manganese; Software algorithms; Algorithm Optimization; In-out Point; Judging and Marking; Polygon;
fLanguage
English
Publisher
ieee
Conference_Titel
Image and Graphics (ICIG), 2013 Seventh International Conference on
Conference_Location
Qingdao
Type
conf
DOI
10.1109/ICIG.2013.140
Filename
6643757
Link To Document