com.bulletphysics.linearmath
Class QuaternionUtil

java.lang.Object
  extended by com.bulletphysics.linearmath.QuaternionUtil

public class QuaternionUtil
extends java.lang.Object


Constructor Summary
QuaternionUtil()
           
 
Method Summary
static float getAngle(javax.vecmath.Quat4f q)
           
static void inverse(javax.vecmath.Quat4f q)
           
static void inverse(javax.vecmath.Quat4f q, javax.vecmath.Quat4f src)
           
static void mul(javax.vecmath.Quat4f q, javax.vecmath.Vector3f w)
           
static javax.vecmath.Vector3f quatRotate(javax.vecmath.Quat4f rotation, javax.vecmath.Vector3f v, javax.vecmath.Vector3f out)
           
static void setRotation(javax.vecmath.Quat4f q, javax.vecmath.Vector3f axis, float angle)
           
static javax.vecmath.Quat4f shortestArcQuat(javax.vecmath.Vector3f v0, javax.vecmath.Vector3f v1, javax.vecmath.Quat4f out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuaternionUtil

public QuaternionUtil()
Method Detail

getAngle

public static float getAngle(javax.vecmath.Quat4f q)

setRotation

public static void setRotation(javax.vecmath.Quat4f q,
                               javax.vecmath.Vector3f axis,
                               float angle)

shortestArcQuat

public static javax.vecmath.Quat4f shortestArcQuat(javax.vecmath.Vector3f v0,
                                                   javax.vecmath.Vector3f v1,
                                                   javax.vecmath.Quat4f out)

mul

public static void mul(javax.vecmath.Quat4f q,
                       javax.vecmath.Vector3f w)

quatRotate

public static javax.vecmath.Vector3f quatRotate(javax.vecmath.Quat4f rotation,
                                                javax.vecmath.Vector3f v,
                                                javax.vecmath.Vector3f out)

inverse

public static void inverse(javax.vecmath.Quat4f q)

inverse

public static void inverse(javax.vecmath.Quat4f q,
                           javax.vecmath.Quat4f src)