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 #14356 is a reply to message #14295] Wed, 17 February 1999 00:00 Go to previous messageGo to previous message
David Kastrup is currently offline  David Kastrup
Messages: 33
Registered: February 1998
Member
Nando Iavarone <f.iavarone@acsys.it> writes:

> Thanks all.
> I found another one algorithm.
> It uses the vectorial product properties to check
> if a point is above or below a line.

Presming that you just do the croos product (which is just a
determinant, really) of vector a-M and b-a to check whether M lies to
the left of a-b, you should be aware that this algorithm, though fast,
works only with convex polygons.

If you draw a quadrilateral that is like an arrow tip, or like a delta
plane (namely two sharp triangles pointing backwards), then a point in
one of the tips will fail the criterion.


--
David Kastrup Phone: +49-234-700-5570
Email: dak@neuroinformatik.ruhr-uni-bochum.de Fax: +49-234-709-4209
Institut f�r Neuroinformatik, Universit�tsstr. 150, 44780 Bochum, Germany
[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 20:02:29 PDT 2025

Total time taken to generate the page: 0.40325 seconds