| Modifier and Type | Method and Description |
|---|---|
void |
VolumeManipulator.setRotation(Quat q) |
| Modifier and Type | Method and Description |
|---|---|
static Quat |
Utils.getCameraOrientation(Quat dst,
View view) |
| Modifier and Type | Method and Description |
|---|---|
static Quat |
Utils.getCameraOrientation(Quat dst,
View view) |
static void |
Utils.setCameraOrientation(Quat rot,
View view) |
| Modifier and Type | Method and Description |
|---|---|
void |
FreeCamera.setRotation(Quat q) |
| Modifier and Type | Method and Description |
|---|---|
static Quat |
TagUtil.parseQuat(java.lang.String s) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
TagUtil.writeQuat(Quat q) |
| Modifier and Type | Field and Description |
|---|---|
static Quat |
Quat.IDENTITY |
| 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).
|
protected Quat |
Quat.setLookAtMatrix(Mat4x4 m) |
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) |
protected static void |
Quat.multiply(Mat4x4 dst,
Mat4x4 src,
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) |
Mat4x4 |
Mat4x4.setRotation(Quat q)
Set 3x3 matrix block to represent the specified rotation.
|
Transform |
Transform.setRotation(Quat 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 | Field and Description |
|---|---|
Quat |
LocalMemory.q_1 |
Quat |
LocalMemory.q_2 |
| Modifier and Type | Method and Description |
|---|---|
static Quat |
MemoryStack.useQuat() |
| Modifier and Type | Method and Description |
|---|---|
static void |
MemoryStack.freeQuat(Quat q) |
| 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) |
| Modifier and Type | Method and Description |
|---|---|
static Quat |
TransformRW.parseRot(java.lang.String value,
java.lang.String type) |
| Modifier and Type | Method and Description |
|---|---|
default IShapeRepresentation<?> |
IShapeRepresentation.at(Vec3 position,
Quat orientation) |
| Modifier and Type | Field and Description |
|---|---|
static Quat |
Orientation.AXIS_MINUS_X |
static Quat |
Orientation.AXIS_MINUS_Y |
static Quat |
Orientation.AXIS_MINUS_Z |
static Quat |
Orientation.AXIS_X |
static Quat |
Orientation.AXIS_Y |
static Quat |
Orientation.AXIS_Z |
| Modifier and Type | Method and Description |
|---|---|
protected static Quat |
PolarDecomposition.snuggle(Quat q_,
Vec3 k,
Quat dst)
Given a unit quaternion, q, and a scale vector, k, find a unit quaternion, p,
which permutes the axes and turns freely in the plane of duplicate scale
factors, such that q p has the largest possible w component, i.e. the
smallest possible angle.
|
| Modifier and Type | Method and Description |
|---|---|
protected static Quat |
PolarDecomposition.snuggle(Quat q_,
Vec3 k,
Quat dst)
Given a unit quaternion, q, and a scale vector, k, find a unit quaternion, p,
which permutes the axes and turns freely in the plane of duplicate scale
factors, such that q p has the largest possible w component, i.e. the
smallest possible angle.
|
Bonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com