comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Is a point in a 4 vertex polygon?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Is a point in a 4 vertex polygon? [message #14369 is a reply to message #14295] Tue, 16 February 1999 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Michael W Asten wrote:
>
> Nando Iavarone wrote:
>
>> Hi all,
>> does anyone know a function that check if
>> a given point is inside a 4 vertex polygon?
>> Cheers,
>> Nando

One method would be to use POLLYFILLV() to return array subscripts
for the points within a polygon defined by vectors X and Y, and
search this for your point. I'm sure there's probably a faster way,
I wasn't able to see David Fanning's "Math Tips" section (network
error).

Dave
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CONVOL2D
Next Topic: SVD and Other things Linear

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:52:22 PDT 2025

Total time taken to generate the page: 0.00468 seconds