home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: sci.math
- Path: sparky!uunet!cs.utexas.edu!convex!convex!dodson
- From: Dave Dodson <dodson@convex.COM>
- Subject: Re: Polygon point enclosure
- Originator: dodson@bach.convex.com
- Sender: usenet@news.eng.convex.com (news access account)
- Message-ID: <1992Aug27.193751.26737@news.eng.convex.com>
- Date: Thu, 27 Aug 1992 19:37:51 GMT
- Reply-To: dodson@convex.COM (Dave Dodson)
- References: <1992Aug26.235700.16224@infodev.cam.ac.uk> <thompson.714934114@daphne.socsci.umn.edu> <1992Aug27.180024.2843@linus.mitre.org>
- Nntp-Posting-Host: bach.convex.com
- Organization: Engineering, CONVEX Computer Corp., Richardson, Tx., USA
- X-Disclaimer: This message was written by a user at CONVEX Computer
- Corp. The opinions expressed are those of the user and
- not necessarily those of CONVEX.
- Lines: 25
-
- In article <1992Aug27.180024.2843@linus.mitre.org> bs@gauss.mitre.org (Robert D. Silverman) writes:
- >I have a question.
- >
- >I will assume that the polygon is given by a set of points.
- >
- >Counting how many sides it intersects seems to require computing the
- >equation for the line containing each side and determining whether
- >the ray intersects the line between the two points. This requires
- >computing O(N) equations and intersections.
- >
- >Why is this any faster than simply representing the interior of
- >the polygon as a set of linear inequalities and simply checking
- >whether the desired point satisfies each inequality?? This is also O(N).
- >This is essentially equivalent to whether a solution is feasible
- >in linear programming.
-
- Yes, but only a convex polygon can be represented by a set of linear
- inequalities, whereas counting the edge crossings of a ray from the
- point in question to infinity can be made to work whether the polygon
- is convex or not.
-
- ----------------------------------------------------------------------
-
- Dave Dodson dodson@convex.COM
- Convex Computer Corporation Richardson, Texas (214) 497-4234
-