home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: sci.math
- Path: sparky!uunet!mcsun!ieunet!tcdcs!maths.tcd.ie!tim
- From: tim@maths.tcd.ie (Timothy Murphy)
- Subject: Re: Polygon point enclosure
- Message-ID: <1992Aug26.230909.29654@maths.tcd.ie>
- Organization: Dept. of Maths, Trinity College, Dublin, Ireland.
- References: <7122@bigbird.hri.com.hri.com>
- Date: Wed, 26 Aug 1992 23:09:09 GMT
- Lines: 15
-
- mps@sparc68.hri.com (Mark Stockley) writes:
-
- >I'm looking for a method to determine if a point is enclosed
- >by a polygon. Any help would be greatly appreciated.
-
- If P is the point,
- you could work out the angle PX goes through
- as X runs round the polygon.
- Should be 0 if P is outside, 2\pi or -2\pi if inside.
-
- --
- Timothy Murphy
- e-mail: tim@maths.tcd.ie
- tel: +353-1-2842366
- s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
-