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)
> print(UserMatrix)
> }
>
You are rotating by a constant amount about a sequence of parallel
vectors. Only the length of the vectors is changing.
If you want to see a change, you need to use a different rotation axis,
or a different amount of rotation.
Duncan Murdoch