Re: point yes/no within a specific area




martijn wrote:
Hello

How can one determine wether a point in R2 (x,y) lies within or out of a
pre-defined area described by n points x1,y1 x2,y2 ... xn,yn ??

Perhaps a commonly used algorithm exsists for this problem?

Yes. You are asking if a point falls in a polygon. This operation is
often needed in computer graphics, and so the best place to look is
in graphics sites, for instance the FAQ for comp.graphics.algorithms.

http://www.faqs.org/faqs/graphics/algorithms-faq/

Read "Subject 2.03: How do I find if a point lies within a polygon?"

- Randy

.



Relevant Pages

  • Re: polygons question
    ... particular polygon is visible? ... how do you check that an edge (line segment) lies within an ... I recommend the standard book, Computer Graphics: Principles and Practice. ...
    (comp.theory)
  • Re: Working with regions
    ... > Since you'll always be using a convex polygon ... > polygon the point lies, if they're all the same then it's ... Dim Yintersect As Long ...
    (microsoft.public.vb.winapi)
  • Re: Point in Polygon-Algorithm
    ... Is your polygon convex or concave? ... For plane geometry these are the stereotypical approaches ... a point lies inside ... circular arcs intersect. ...
    (comp.infosystems.gis)
  • Re: Working with regions
    ... point in region test is actually a lot higher than you may expect, ... > whether the click lies within the polygon, ... they won't always be convex polygons - the bitmaps which I ...
    (microsoft.public.vb.winapi)
  • Re: point yes/no within a specific area
    ... How can one determine wether a point in R2 lies within or out of a ... Perhaps a commonly used algorithm exsists for this problem? ... best regards, ...
    (sci.math)