Preparata and Shamos (Intersection sum of angle) (Point-in-Polygon Point-in-Polygon)

From Algorithm Wiki
Jump to navigation Jump to search

Time Complexity

$O(n)$

Space Complexity

$O({1})$ words

(Only need to keep track of current angle and cumulative angle sum)

Description

Approximate?

Exact

Randomized?

No, deterministic

Model of Computation

Real RAM

Year

1985

Reference

http://www.cs.kent.edu/~dragan/CG/CG-Book.pdf