home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.programming
- Path: sparky!uunet!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!tada
- From: tada@athena.mit.edu (Michael J Zehr)
- Subject: Re: How to decide if a point is inside a polygon?
- Message-ID: <1992Sep2.010512.14813@athena.mit.edu>
- Sender: news@athena.mit.edu (News system)
- Nntp-Posting-Host: e40-008-5.mit.edu
- Organization: Massachusetts Institute of Technology
- References: <schnitzi.715032142@eola.cs.ucf.edu> <thompson.715056569@malthus.econ.umn.edu> <17n15nINNehp@agate.berkeley.edu>
- Date: Wed, 2 Sep 1992 01:05:12 GMT
- Lines: 15
-
- In article <17n15nINNehp@agate.berkeley.edu> bsmith@mickey.NoSubdomain.NoDomain (Brian Smith) writes:
- >I got this off the net a while ago. The original poster was Michael J.
- >Zehr, from MIT at the time. It uses a clever version of the "scan in any
- >direction any see how many times the point crosses the polygon" test that, as
- >far as I know, handles the special cases correctly.
- >[...]
- >Brian C. Smith arpa: bsmith@cs.Berkeley.EDU
- >University of California, Berkeley uucp: uunet!ucbvax!postgres!bsmith
- >Computer Sciences Department phone: (510)642-9585
-
- Thank you Brian! I was about to post something similar again. I wonder
- if this should go in some FAQ someplace considering that number of times
- I've seen this question raised and the wrong answers posted....
-
- -michael j zehr
-