Package | Description |
---|---|
thothbot.parallax.core.shared.core |
Contains all core Objects such as Vectors, Matrices and so on which are used overall on the project.
|
thothbot.parallax.core.shared.math |
Different mathematics
|
Modifier and Type | Method and Description |
---|---|
Quaternion |
Object3D.getQuaternion()
Object's local rotation as
Quaternion . |
Quaternion |
Object3D.getWorldQuaternion(Quaternion optionalTarget) |
Quaternion |
Object3D.getWorldQuaternion(Vector3 optionalTarget) |
Modifier and Type | Method and Description |
---|---|
Quaternion |
Object3D.getWorldQuaternion(Quaternion optionalTarget) |
void |
Object3D.setQuaternion(Quaternion quaternion) |
void |
Object3D.setRotationFromQuaternion(Quaternion q) |
Modifier and Type | Method and Description |
---|---|
Quaternion |
Quaternion.clone()
Clone the current Quaternion
quaternion.clone() !
|
Quaternion |
Quaternion.conjugate() |
Quaternion |
Quaternion.copy(Quaternion c1)
Copy values from input Quaternion to the values of current Quaternion.
|
Quaternion |
Quaternion.inverse()
Negates the value of this Quaternion in place.
|
Quaternion |
Quaternion.multiply(Quaternion b)
Sets the value of this Quaternion to the vector multiplication of itself and
Quaternion b.
|
Quaternion |
Quaternion.multiply(Quaternion a,
Quaternion b)
Sets the value of this Quaternion to the vector multiplication of Quaternion a and
Quaternion v2.
|
Quaternion |
Quaternion.normalize()
Normalize the current Quaternion
|
Quaternion |
Quaternion.set(double x,
double y,
double z,
double w) |
Quaternion |
Quaternion.setFromAxisAngle(Vector3 axis,
double angle)
|
Quaternion |
Quaternion.setFromEuler(Euler euler) |
Quaternion |
Quaternion.setFromEuler(Euler euler,
boolean update) |
Quaternion |
Quaternion.setFromRotationMatrix(Matrix4 m)
http://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToQuaternion/index.htm
assumes the upper 3x3 of m is a pure rotation matrix (i.e, unscaled)
|
Quaternion |
Quaternion.setFromUnitVectors(Vector3 vFrom,
Vector3 vTo)
http://lolengine.net/blog/2014/02/24/quaternion-from-two-vectors-final
assumes direction vectors vFrom and vTo are normalized
|
Quaternion |
Quaternion.slerp(Quaternion qb,
double t)
Quaternion Interpolation
Based on http://www.euclideanspace.com
|
static Quaternion |
Quaternion.slerp(Quaternion qa,
Quaternion qb,
Quaternion qm,
double t) |
Modifier and Type | Method and Description |
---|---|
Vector3 |
Vector3.apply(Quaternion q) |
Matrix4 |
Matrix4.compose(Vector3 position,
Quaternion quaternion,
Vector3 scale) |
Quaternion |
Quaternion.copy(Quaternion c1)
Copy values from input Quaternion to the values of current Quaternion.
|
Matrix4 |
Matrix4.decompose(Vector3 position,
Quaternion quaternion,
Vector3 scale) |
double |
Quaternion.dot(Quaternion v) |
boolean |
Quaternion.equals(Quaternion quaternion) |
Matrix4 |
Matrix4.makeRotationFromQuaternion(Quaternion q) |
Quaternion |
Quaternion.multiply(Quaternion b)
Sets the value of this Quaternion to the vector multiplication of itself and
Quaternion b.
|
Quaternion |
Quaternion.multiply(Quaternion a,
Quaternion b)
Sets the value of this Quaternion to the vector multiplication of Quaternion a and
Quaternion v2.
|
void |
Quaternion.QuaternionChangeHandler.onChange(Quaternion quaternion) |
Vector4 |
Vector4.setAxisAngleFromQuaternion(Quaternion q)
|
Euler |
Euler.setFromQuaternion(Quaternion q) |
Euler |
Euler.setFromQuaternion(Quaternion q,
java.lang.String order) |
Euler |
Euler.setFromQuaternion(Quaternion q,
java.lang.String order,
boolean update) |
Quaternion |
Quaternion.slerp(Quaternion qb,
double t)
Quaternion Interpolation
Based on http://www.euclideanspace.com
|
static Quaternion |
Quaternion.slerp(Quaternion qa,
Quaternion qb,
Quaternion qm,
double t) |