Article View: comp.lang.pascal.misc
Article #108Re: ¿IRREGULAR AREA?
From: Bill Boulton
Date: Wed, 21 Oct 1998 00:00
Date: Wed, 21 Oct 1998 00:00
26 lines
1731 bytes
1731 bytes
On Tue, 20 Oct 1998 07:35:30 -0700, Rich Pasco <pasco@best.com> wrote: >Arnaud Fietzke <arnaud.fietzke@provi.de> wrote > >If you define the area as a polygon, then the point is "in" the area >if it is on the correct side of each of the sides of the polygon, e.g. > >FUNCTION inside(x,y): BOOLEAN; > BEGIN > inside = (a*x + b*y < c) AND > (d*x + e*y > d) AND > (f*x + g*y < h) AND ... > END; > >The example above has three sides (a triangle). > So it's a triangle. We know what x & y are but what exactly are a, b, c, d, e, f, g, & h? I'm sure you know what you are trying to say but I'm damned if I do. They can't be ordered pairs describing the triangle since only 3 pair would be required. I would really like to understand this algorithm. It may be cool for C programmers to write obfuscated code but I don't believe there is any need for it in Pascal. Bill
Technical Details
Message-ID:
<362d3500.1631876@news.winshop.com.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<70g4og$cp2$1@news.hamburg.pop.de> <362C91A2.7F40@best.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 108ebd,b2af222be2a1216e X-Google-Attributes: gid108ebd,public X-Google-Thread: 10261c,b2af222be2a1216e X-Google-Attributes: gid10261c,public X-Google-Thread: 10c950,b2af222be2a1216e X-Google-Attributes: gid10c950,public X-Google-Thread: 111659,b2af222be2a1216e X-Google-Attributes: gid111659,public From: bill_boulton@winshop.com.au (Bill Boulton) Subject: Re: ¿IRREGULAR AREA? Date: 1998/10/21 Message-ID: <362d3500.1631876@news.winshop.com.au> X-Deja-AN: 403434933 References: <70g4og$cp2$1@news.hamburg.pop.de> <362C91A2.7F40@best.com> Organization: Customer of Connect.com.au P/L, Brisbane, Australia Newsgroups: comp.lang.pascal.misc,borland.public.turbopascal,comp.lang.pascal.ansi-iso,comp.lang.pascal.borland