Re: [R] About the parameters of rotationMatrix

2016-06-21 Thread Atte Tenkanen
Oh, thanks... ;-) Atte 21.6.2016, 17.30, Duncan Murdoch kirjoitti: for(i in 1: 10) { a2=i*0.1; b2=i*0.2; c2=i*0.3 print(c(a2,b2,c2)) UserMatrix = rotationMatrix(pi/4,a2,b2,c2) print(UserMatrix) } __ R-help@r-project.org

Re: [R] About the parameters of rotationMatrix

2016-06-21 Thread Duncan Murdoch
On 21/06/2016 6:50 AM, Atte Tenkanen wrote: Hi, Why does this not work? The values inside the rotationMatrix() doesn't seem to change: library(rgl) for(i in 1: 10) { a2=i*0.1; b2=i*0.2; c2=i*0.3 print(c(a2,b2,c2)) UserMatrix = rotationMatrix(pi/4,a2,b2,c2)

[R] About the parameters of rotationMatrix

2016-06-21 Thread Atte Tenkanen
Hi, Why does this not work? The values inside the rotationMatrix() doesn't seem to change: library(rgl) for(i in 1: 10) { a2=i*0.1; b2=i*0.2; c2=i*0.3 print(c(a2,b2,c2)) UserMatrix = rotationMatrix(pi/4,a2,b2,c2) print(UserMatrix) } Yours, Atte Tenkanen