Open GoogleCodeExporter opened 8 years ago
Thank you for your contribution.
FlashCanvas Pro and fxCanvas have already implemented isPointInPath() in
different ways. I'd like to examine which implementation is fast and accurate.
By the way, the code you wrote is an implementation for the even-odd rule,
isn't it? According to the Canvas specification, an implementation for the
non-zero winding number rule is desired.
http://www.w3.org/TR/2dcontext/#dom-context-2d-ispointinpath
Original comment by revu...@gmail.com
on 19 Mar 2011 at 1:47
Hi,
Yes, you are quite right. I found this page discussing the difference:
http://softsurfer.com/Archive/algorithm_0103/algorithm_0103.htm
Original comment by mccor...@gmail.com
on 19 Mar 2011 at 9:57
Original issue reported on code.google.com by
mccor...@gmail.com
on 18 Mar 2011 at 3:12