MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

re: inside of polygon


this is a FAQ.

define the rectangle that contains the contour.
For each point in that rectangle, calculate the winding number
(cumulative director angle from that point to all points around the
contour). If zero, then point is outside. If (2 Pi) then point is
inside. Works also for non-convex contours.

enjoy.


  • Prev by Date: ToString on object
  • Next by Date: problems with Technical Trader
  • Previous by thread: ToString on object
  • Next by thread: problems with Technical Trader