Re: Rotating a line QUICKLY [message #12966] |
Mon, 21 September 1998 00:00 |
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/
|
|
|