Hi:

When I try to build a rotation matrix from an AxisAngle and then to
extract an AxisAngle from the resulting matrix, I end up with a weird
AxisAngle depending on the value of the angle I submitted initially.
Foe example, in the following program, I would expect the AxisAngles "a"
and "b" to be equivalent:

public class Test {
   public static void main(String args[]){
      
      Matrix4f mat=new Matrix4f();
      
      AxisAngle4f a=new AxisAngle4f(1,1,1,(float)Math.PI/3.0f);

      System.out.println(a);
      
      mat.set(a);
      
      AxisAngle4f b=new AxisAngle4f();
      b.set(mat);

      System.out.println(b);
      
   }  
}

I've got:

(1.0, 1.0, 1.0, 1.0471976)
(-1.097575E-9, -1.0, 0.0, 1.0471976)

Any idea ?








-- 
********************************************************************
*  Frederic Dang Tran            *   France Telecom CNET  DTL/ASR  *  
*                                *   38-40 rue du General Leclerc  *
*  Tel: (+33) 1 45 29 60 88      *   92794 Issy Moulineaux Cedex 9 *
*  Fax: (+33) 1 45 29 66 04      *   FRANCE                        *
********************************************************************
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to