I'm not sure if I'm understanding the code that performs rotations in 7.5:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| private Transform3D t3d = new Transform3D(); private Transform3D toRot = new Transform3D(); private void doRotate(TransformGroup tg, int rotType, double angle) { tg.getTransform(t3d); if (rotType == X_JOINT) toRot.rotZ(angle); else if (rotType == Y_JOINT) toRot.rotX(angle); else toRot.rotY(angle); t3d.mul(toRot); tg.setTransform(t3d); } |
I don't quite understand where "toRot" is getting it's initial value from.