com.bulletphysics.linearmath
Class QuaternionUtil
java.lang.Object
com.bulletphysics.linearmath.QuaternionUtil
public class QuaternionUtil
- extends java.lang.Object
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 |
QuaternionUtil
public QuaternionUtil()
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)