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

Home » Public Forums » archive » Re: Already written function to find if a point is within a rectangle?
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: Already written function to find if a point is within a rectangle? [message #79345 is a reply to message #79344] Mon, 20 February 2012 14:09 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jacare Omoplata writes:

> So I need a way to find out if a point ( position of a star ) is
> within a rectangle ( image boundary ). The rectangle edges are not
> strictly horizontal or vertical.
>
> I've found several methods of doing this, and can write a function.
> But I can save some time if someone knows if there's already one
> available out there.

This "point inside polygon" code might be helpful:

http://www.idlcoyote.com/tips/point_in_polygon.html

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: custom IDL programming solutions
Next Topic: Re: Conumdrum -- Or What's a Newsgroup For

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

Current Time: Sun Oct 12 08:07:27 PDT 2025

Total time taken to generate the page: 1.84096 seconds