GeomConverter/src/org/lcsim/detector
diff -u -r1.2 -r1.3
--- Rotation3D.java 26 Feb 2007 19:25:19 -0000 1.2
+++ Rotation3D.java 26 Feb 2007 19:31:43 -0000 1.3
@@ -72,8 +72,8 @@
double cos = Math.cos(angle);
BasicHep3Matrix rotation = BasicHep3Matrix.identity();
rotation.setElement(1,1,cos);
- rotation.setElement(1,2,sin);
- rotation.setElement(2,1,-sin);
+ rotation.setElement(1,2,-sin);
+ rotation.setElement(2,1,sin);
rotation.setElement(2,2,cos);
return rotation;
}
@@ -84,8 +84,8 @@
double cos = Math.cos(angle);
BasicHep3Matrix rotation = BasicHep3Matrix.identity();
rotation.setElement(0,0,cos);
- rotation.setElement(0,2,sin);
- rotation.setElement(2,0,-sin);
+ rotation.setElement(0,2,-sin);
+ rotation.setElement(2,0,sin);
rotation.setElement(2,2,cos);
return rotation;
}
@@ -96,8 +96,8 @@
double cos = Math.cos(angle);
BasicHep3Matrix rotation = BasicHep3Matrix.identity();
rotation.setElement(0,0,cos);
- rotation.setElement(0,1,sin);
- rotation.setElement(1,0,-sin);
+ rotation.setElement(0,1,-sin);
+ rotation.setElement(1,0,sin);
rotation.setElement(1,1,cos);
return rotation;
}