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

Home » Public Forums » archive » Re: Rotating a line QUICKLY
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: Rotating a line QUICKLY [message #12966] Mon, 21 September 1998 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Matthew J. Sheats (sheats@lanl.gov) writes:

> Here is [...] a basic geometery problem.
> I have a straight line made up of many
> X,Y coordinates which I have found previously with a WHERE command. I
> can rotate them with a relatively simple trig function to any degree I
> want about any arbitrary point.
>
> The problem is, this is too slow for my application. The ineficiency
> comes from rotating ALL the points in the line instead of just the end
> points. My problem is, does anyone have a good suggestion for
> re-connecting the line once I rotate JUST it's end points to the desired
> angle?
>
> I have looked at things like Interpolate etc, but I'm not sure how to
> go about applying them, or if they will even work.

Here is an article that can be found on my web page that
will show you how to use the Interpolate function to fill
in the points along a line specified by two end points.

http://www.dfanning.com/tips/image_profile.html

Cheers,

David
----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438, Toll-Free Book Orders: 1-888-461-0155
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Previous Topic: systime to date
Next Topic: Rotating a line QUICKLY

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

Current Time: Sat Oct 11 15:30:58 PDT 2025

Total time taken to generate the page: 1.51863 seconds