Point in convex polygon - fast O(qlogn) algorithm
ฝัง
- เผยแพร่เมื่อ 15 ม.ค. 2025
- In this video you will learn about fast algorithm of checking whether point is inside or outside of the convex polygon. With this algorithm answer for each query can be efficiently found using just log(n) operations.
Source code of the algorithm: github.com/Mat...
-------
Music: «New dawn» from Bensound.com
Had hard time understanding it in Computer Graphics class, thank you. It was very helpful
finally a good video on this ! thanks !!
i love maths clever things . great content keep up!
Thanks, nice explanation !
awesome
Helpful
good video
This doesn't look like log n. It's a linear scan of the vertices until you find two vectors which point Q lies in.
yea thats what the visualisation shows, but as we have a binary choice (positive or negative) it can be done with binary search
przepraszam
przepraszam
fucking good