@Test public void testRotate() {
Vector3 axis=new Vector3(1,0,0);
Vector3 v=new Vector3(0,1,0);
double angle=0.5*Math.PI;
Matrix33 rotM = Matrixx.createRotationMatrix(axis, angle);
Vector4 rotQ = Quaternions.axisAngle(axis, angle);
Vector3 mv=rotM.innerProduct(v);
Vector3 qv=Quaternions.rotate(rotQ, v);
assertEquals(mv,qv);
assertTrue(mv.epsilonEquals(qv));
}