Article View: comp.lang.pascal.borland
Article #211Re: Geometric Algorithims
From: Arash Partow
Date: Wed, 26 Jan 2000 00:00
Date: Wed, 26 Jan 2000 00:00
40 lines
2429 bytes
2429 bytes
hi, I disagree, the method only works for circles, for polygons its a totally different, method, try the procedures with your own polygons and see if they work out, try different type sof concave and complex polygons. These routines are the fastest ever, all they need is ASM interprations and it will fly. Arash Dr John Stockton wrote: > JRS: In article <388DB645.15D47762@ihug.com.au> of Wed, 26 Jan 2000 > 01:42:13 in news:comp.lang.pascal.borland, Arash Partow > <arash@ihug.com.au> wrote: > > >Well I 've decided to put back into a community that has helped me out > >so much over the years. > >I've developed a set of really fast geometric routines that I would like > >to share with everyone. > > Too many newsgroups, in one of which policy bars crossposts (but only > applies when sent to the proper server). FU set to the two relevant > ones; using the tolerant server. > > >Function PntInCircle(Px,Py,x,y,Radius:LongInt):Boolean; > > Begin > > PntInCircle:=False; > > If Distance(Px,Py,x,y) <= Radius then PntInCircle:=True > > End; > > Function PntInCircle(Px,Py,x,y,Radius:LongInt):Boolean; > Begin PntInCircle:= Distance(Px,Py,x,y) <= Radius End; > > is all you need; similarly for others. > > -- > � John Stockton, Surrey, UK. jrs@merlyn.demon.co.uk Turnpike v4.00 MIME. � > <URL: http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links; > <URL: ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip> Timo Salmi's Turbo Pascal FAQ; > <URL: http://www.merlyn.demon.co.uk/clpb-faq.txt> Pedt Scragg: c.l.p.b. mFAQ.
Technical Details
Message-ID:
<388E44C7.F372707A@ihug.com.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<388DB645.15D47762@ihug.com.au> <T58oSVDWWgj4EwAQ@merlyn.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111659,694cfb236e701b33 X-Google-Attributes: gid111659,public X-Google-Thread: 108ebd,694cfb236e701b33 X-Google-Attributes: gid108ebd,public From: Arash Partow <arash@ihug.com.au> Subject: Re: Geometric Algorithims Date: 2000/01/26 Message-ID: <388E44C7.F372707A@ihug.com.au> X-Deja-AN: 577664530 Cache-Post-Path: mel.ihug.com.au!unknown@p239-tnt1.mel.ihug.com.au Content-Transfer-Encoding: 8bit References: <388DB645.15D47762@ihug.com.au> <T58oSVDWWgj4EwAQ@merlyn.demon.co.uk> X-Accept-Language: en X-Server-Date: 26 Jan 2000 00:38:58 GMT Content-Type: text/plain; charset=iso-8859-1 Organization: The Internet Group (Melbourne) X-Cache: nntpcache 2.3.3b4 (see http://www.nntpcache.org/) Mime-Version: 1.0 Newsgroups: comp.lang.pascal.borland,borland.public.turbopascal