From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a9517107ce472fc7 X-Google-Attributes: gid103376,public From: mikeg2@my-dejanews.com Subject: Re: geometric utilities Date: 1998/06/12 Message-ID: <6lrto0$6q1$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 362075341 References: <6l6ihi$ivh$1@nnrp1.dejanews.com> X-Http-User-Agent: Mozilla/3.01 (WinNT; U) Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Fri Jun 12 18:58:08 1998 GMT Newsgroups: comp.lang.ada Date: 1998-06-12T00:00:00+00:00 List-Id: In article , Brian Rogoff wrote: > > Mike, > The first problem is that you posted Pascal code to an Ada > newsgroup :-). > > I just wrote down a naive Point_In_Polygon in Ada, untested (I'm > Adaless for now). It should be easy to modify for whatever you're doing, > and its pretty self explanatory if you understand ray casting. It doesn't > have the same preconditions as what you posted. Try this if you can't > figure out the code you have. This is definitely hacked up on the fly, > and so serves as a counterexample that you can't hack in Ada ;-). > > -- Brian > thanks brian, your code seems to do the trick and was pretty easily integrated with what i have. i never could figure out what was wrong with the other algorithm (sorry about the pascal, that's how it appeared in the textbook ;). -mike -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/ Now offering spam-free web-based newsreading