ROT3D-Rotationin3dspaceR=vlt.math.rot3d(THETA,AXIS)Performsa3drotationaboutoneofthe3-dimensionalaxesoranarbitraryaxis.IfAXIS==1,therotationisperformedabouttheXaxis(dimension1).IfAXIS==2,therotationisperformedabouttheYaxis(dimension2).IfAXIS==3,therotationisperformedabouttheZaxis(dimension3).IfAXISisavectorof3,thentherotationisperformedaboutthatvector.Thevectorisfirstnormalized.Examples:x_unit=[1;0;0];y_unit=[0;1;0];z_unit=[0;0;1];R=vlt.math.rot3d(pi/2,1)R*x_unit% 45 degree rotation about x axis, no change in x_unitR=vlt.math.rot3d(pi/2,x_unit)% should be the same rotation as above% now rotate the y_unit about the x axisR*y_unit% moves from [0;1;0] to [0;0;1]Seealso:vlt.math.rot2d