public void testCreateFromAxisAngle() {
ReadonlyVec3D axis = new Vec3D(100, 100, 100);
float angle = MathUtils.PI * 1.5f;
Quaternion a = Quaternion.createFromAxisAngle(axis, angle);
assertEquals(MathUtils.sin(-MathUtils.QUARTER_PI), a.w);
float[] reverse = a.toAxisAngle();
Vec3D revAxis = new Vec3D(reverse[1], reverse[2], reverse[3]);
assertTrue(axis.getNormalized().equalsWithTolerance(revAxis, 0.01f));
assertTrue(MathUtils.abs(angle - reverse[0]) < 0.01);
}