hi, after using quaternions (javax.vecmath.Quat4f) i noticed that the
constructor Quat4f(float x, float y, float z, float w) not just set
these parameters as values, it also normalize the object.
It doesnt say anything about this in the javadoc.
Maybe this is a feature, i dont know, i hope this is a bug, if not,
please let people know that the object is normalized.
i attach a small program to illustrate the problem.

st�le
import javax.vecmath.Quat4f;

public class QuatTest {

  public static void main(String[] args) {
    Quat4f quat = new Quat4f(4.0f, 2.0f, 0.8f, 0.0f);
    Quat4f quat2 = new Quat4f();
    quat2.set(4.0f, 2.0f, 0.8f, 0.0f);
    quat2.normalize();
    System.out.println("quat="+quat.toString());
    System.out.println("quat2="+quat2.toString());
  }
}

Reply via email to