Fn RotateViewPort inputAxis inputDegrees = ( ViewPortMatrix = inverse(ViewPort.GetTM()) RotationMatrix = (quat inputDegrees inputAxis ) as Matrix3 ViewPortMatrix *= RotationMatrix ViewPort.SetTM (inverse ViewPortMatrix))RotateViewPort [0,0,1] -1