| Package | Description |
|---|---|
| com.bonzaiengine.gamekit.util | |
| com.bonzaiengine.io | |
| com.bonzaiengine.math | |
| com.bonzaiengine.memory | |
| com.bonzaiengine.model.reader | |
| com.bonzaiengine.physics.constraints |
| Modifier and Type | Method and Description |
|---|---|
void |
FreeCamera.setRotation(Quat q) |
| Modifier and Type | Method and Description |
|---|---|
static Quat |
ParserUtils.parseQuat(java.lang.String s) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
ParserUtils.writeQuat(Quat q) |
| Modifier and Type | Method and Description |
|---|---|
Quat |
Quat.clone() |
Quat |
Quat.conjugate()
Conjugate (negate) this quaternion.
|
Quat |
Quat.divide(Quat q1,
Quat q2)
Divide q1 by q2, and store the result in this quaternion.
|
Quat |
Mat4x4.getLookAtRotation(Quat dst) |
Quat |
Transform.getRotation(Quat dst)
If modified, call the appropriate setter to synchronize internal data
|
Quat |
Transform.getScaleRotate(Quat dst) |
Quat |
Quat.interpolate(Quat current,
Quat next,
float t)
Equivalent to slerp
|
Quat |
Quat.invert()
Invert this quaternion.
|
Quat |
Plane.mirrorOrientation(Quat dst,
Quat q) |
Quat |
Quat.multiply(Quat q1,
Quat q2)
Multiply q1 by q2, and store the result in this quaternion.
|
Quat |
Quat.scale(float scale)
Scale this quaternion.
|
Quat |
Quat.set(float x,
float y,
float z,
float w) |
Quat |
Quat.set(Quat src) |
Quat |
Quat.setAnglesXYZ(float angleXInRadians,
float angleYInRadians,
float angleZInRadians)
Create a quaternion from angles, as defined by the order: x, y, z
This method is strictly equivalent than: final Quaternion4f q_ = new Quaternion4f(); this.setAxisAngle(Vector3f.axisX, angleXInRadians); this.multiply(q_.setAxisAngle(Vector3f.axisY, angleYInRadians)); this.multiply(q_.setAxisAngle(Vector3f.axisZ, angleZInRadians)); This code has been inlined and optimized. |
Quat |
Quat.setAnglesZYX(float angleXInRadians,
float angleYInRadians,
float angleZInRadians)
Create a quaternion from angles, as defined by the order: z, y, x
This method is strictly equivalent than: final Quaternion4f q_ = new Quaternion4f(); this.setAxisAngle(Vector3f.axisZ, angleZInRadians); this.multiply(q_.setAxisAngle(Vector3f.axisY, angleYInRadians)); this.multiply(q_.setAxisAngle(Vector3f.axisX, angleYInRadians)); This code has been inlined and optimized. |
Quat |
Quat.setAxis(Vec3 axisX,
Vec3 axisY,
Vec3 axisZ)
Deprecated.
|
Quat |
Quat.setAxisAngle(Vec3 axis,
float angleInRadians)
Create a quaternion from an axis angle rotation representation.
|
Quat |
Quat.setIdentity()
Set this quaternion as the identity quaternion (0, 0, 0, 1).
|
Quat |
Quat.setRotationMatrix(Mat4x4 m)
Warning: This is only valid for normalized matrix, right handed with no scaling.
|
Quat |
Quat.setVectorRotation(Vec3 vec1,
Vec3 vec2)
Shortest arc rotation between the two specified vectors
|
Quat |
Quat.slerp(Quat current,
Quat next,
float t)
Spherical linear interpolation
|
| Modifier and Type | Method and Description |
|---|---|
float |
Quat.distance(Quat q) |
Quat |
Quat.divide(Quat q1,
Quat q2)
Divide q1 by q2, and store the result in this quaternion.
|
Quat |
Mat4x4.getLookAtRotation(Quat dst) |
Quat |
Transform.getRotation(Quat dst)
If modified, call the appropriate setter to synchronize internal data
|
void |
Mat4x4.getRotationAndScale(Quat q,
Vec3 scale)
WARNING: This is not a general way to convert a matrix into a quaternion !
|
Quat |
Transform.getScaleRotate(Quat dst) |
void |
Quat.getTwistDecomposition(Quat rot,
Quat twist,
Vec3 axis)
Decompose the quaternion in a rotation quaternion
rot (perpendicular to the axis)
and a twist rotation twist (along the axis) such as:this == new Quat().multiply(rot, twist) |
Quat |
Quat.interpolate(Quat current,
Quat next,
float t)
Equivalent to slerp
|
static boolean |
MathFunc.isQuaternionValid(Quat q) |
Mat4x4 |
Mat4x4.lookAt(Quat q,
Vec3 position)
Create a look at matrix, and store in this matrix
|
Quat |
Plane.mirrorOrientation(Quat dst,
Quat q) |
Quat |
Quat.multiply(Quat q1,
Quat q2)
Multiply q1 by q2, and store the result in this quaternion.
|
Mat4x4 |
Mat4x4.rotate(Quat q)
Multiply the 3x3 matrix block o this matrix with the specified quaternion.
|
Quat |
Quat.set(Quat src) |
Transform |
Transform.setRotation(Quat rotation) |
Mat4x4 |
Mat4x4.setRotation(Quat q)
Set 3x3 matrix block to represent the specified rotation.
|
Transform |
Transform.setRotationAroundPivot(Quat q,
Vec3 pivot,
Vec3 axis,
float angleInRadians)
Deprecated.
|
Transform |
Transform.setScaleRotate(Quat scaleRotate) |
Quat |
Quat.slerp(Quat current,
Quat next,
float t)
Spherical linear interpolation
|
| Modifier and Type | Method and Description |
|---|---|
static Quat |
MemoryAllocator.allocQuat()
Reuse or alloc a
Quat from garbage pool |
| Modifier and Type | Method and Description |
|---|---|
static void |
MemoryAllocator.free(Quat q)
Free a
Quat to garbage pool |
| Modifier and Type | Field and Description |
|---|---|
java.util.HashMap<java.lang.Float,Quat> |
KeyFramer.rotMap |
| Modifier and Type | Method and Description |
|---|---|
void |
ConeTwistConstraint.setMotorTarget(Quat q,
boolean constraintSpace) |
void |
HingeConstraint.setMotorTarget(Quat qAinB,
float dt) |
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com