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

Home » Public Forums » archive » some geometry questions.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
some geometry questions. [message #48175] Wed, 29 March 2006 14:58
qian is currently offline  qian
Messages: 3
Registered: July 2005
Junior Member
Dear IDL users,

If I have 4 random points (x0,y0) (x1,y1), (x3,y3), (x4,y4), is there a
simple way to decide whether one of them is inside of the triangle
formed by the other three points?

If none of them is in the triangle by others, how can I connect them in
order to form a 4 edges polygon, instead of two head on triangles, when
using order 1-2-3-4-1?

like this:
1----2
\ \
4\__\3

not like this:
1-----2
\ /
/\
/ \
3-----4

Thanks,

Qian
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: A New error msg, for me: % Variable is undefined: <UNDEFINED>
Next Topic: Re: A New error msg, for me: % Variable is undefined: <UNDEFINED>

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

Current Time: Wed Oct 08 10:58:15 PDT 2025

Total time taken to generate the page: 0.00368 seconds