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

Home » Public Forums » archive » Re: Rotten behavior with rot command
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: Rotten behavior with rot command [message #21188 is a reply to message #21187] Thu, 17 August 2000 00:00 Go to previous message
promashkin is currently offline  promashkin
Messages: 169
Registered: December 1999
Senior Member
I did not find anything wierd when I tried it:

IDL> print, findgen(3,3)
0.00000 1.00000 2.00000
3.00000 4.00000 5.00000
6.00000 7.00000 8.00000
IDL> print, rot(findgen(3,3), 180, /interp)
8.00000 7.00000 6.00000
5.00000 4.00000 3.00000
2.00000 1.00000 1.90719e-07
IDL> print, rot(findgen(3,3), 90, /interp)
2.00000 5.00000 8.00000
1.00000 4.00000 7.00000
0.00000 3.00000 6.00000

I couldn't quite understand how ROT works with other settings but these
two appeared reasonable.
I'd check if there is some rounding happening somewhere in your code.
Cheers,
Pavel
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Scaling atoms & axes in object graphics
Next Topic: Rotten behavior with rot command

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

Current Time: Sat Oct 11 13:00:17 PDT 2025

Total time taken to generate the page: 0.23513 seconds