Home »
Public Forums »
archive »
Points in a rectangle with an angle
Points in a rectangle with an angle [message #48231] |
Wed, 05 April 2006 09:32 |
JJMeyers2
Messages: 12 Registered: October 2005
|
Junior Member |
|
|
Hello,
I have a problem in IDL that I was wondering if anyone has any idea how
it can be done.
I have a set of coordinates and I am trying to figure out how many of
the coordinates are inside a rectangle. I know the coordinates of the 4
edges of the rectangle but the problem is that the rectangle is at an
angle in the x,y axis ( I know the slope). I can not just say
coords=where((x LE xmax) AND (x GT xmin) AND (y LE ymin) AND (y GT
ymax))
because that will give me coordinates of a rectangle without an angle
(parallel to the y axis).
Is there any function in IDL that might be doing that?
Thank you,
JJM.
|
|
|
Current Time: Wed Oct 08 19:19:13 PDT 2025
Total time taken to generate the page: 0.00469 seconds