home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.programming
- Path: sparky!uunet!peora!tarpit!cs.ucf.edu!schnitzi
- From: schnitzi@cs.ucf.edu (Mark Schnitzius)
- Subject: Deciding point-in-polygon: A new idea.
- Message-ID: <schnitzi.715219193@eola.cs.ucf.edu>
- Sender: news@cs.ucf.edu (News system)
- Organization: University of Central Florida
- Distribution: comp
- Date: Sun, 30 Aug 1992 23:59:53 GMT
- Lines: 15
-
- How about this:
-
- Compute the area of the polygon in question (this is a well
- known and simple procedure). Now consider the polygon formed
- by adding the point in question as another vertice, anywhere
- in the original list of vertices. If the area of this new
- polygon is greater than the original, the point is outside
- the polygon. If less, it is inside.
-
- My question: will it work?
-
-
- Mark Schnitzius
- schnitzi@eola.csu.ucf.edu
- Univ. of Central Florida
-