| Package | Description |
|---|---|
| org.joml |
Contains all classes of JOML.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Quaterniond
Quaternion of 4 double-precision floats which can represent rotation and uniform scaling.
|
| Modifier and Type | Method and Description |
|---|---|
static Quaterniondc |
Quaterniond.nlerp(Quaterniond[] qs,
double[] weights,
Quaterniond dest)
Interpolate between all of the quaternions given in
qs via non-spherical linear interpolation using the
specified interpolation factors weights, and store the result in dest. |
static Quaterniondc |
Quaterniond.slerp(Quaterniond[] qs,
double[] weights,
Quaterniond dest)
Interpolate between all of the quaternions given in
qs via spherical linear interpolation using the specified interpolation factors weights,
and store the result in dest. |
| Modifier and Type | Method and Description |
|---|---|
Quaterniond |
Quaterniond.add(Quaterniondc q2)
Add
q2 to this quaternion. |
Quaterniond |
Quaterniond.add(Quaterniondc q2,
Quaterniond dest) |
Quaterniond |
Quaterniondc.add(Quaterniondc q2,
Quaterniond dest)
Add
q2 to this quaternion and store the result in dest. |
Quaterniond |
Quaterniond.difference(Quaterniondc other)
Compute the difference between
this and the other quaternion
and store the result in this. |
Quaterniond |
Quaterniond.difference(Quaterniondc other,
Quaterniond dest) |
Quaterniond |
Quaterniondc.difference(Quaterniondc other,
Quaterniond dest)
Compute the difference between
this and the other quaternion
and store the result in dest. |
Quaterniond |
Quaterniond.div(Quaterniondc b)
Divide
this quaternion by b. |
Quaterniond |
Quaterniond.div(Quaterniondc b,
Quaterniond dest) |
Quaterniond |
Quaterniondc.div(Quaterniondc b,
Quaterniond dest)
Divide
this quaternion by b and store the result in dest. |
double |
Quaterniond.dot(Quaterniondc otherQuat) |
double |
Quaterniondc.dot(Quaterniondc otherQuat)
Return the dot product of this
Quaterniond and otherQuat. |
Quaterniond |
Quaterniond.mul(Quaterniondc q)
Multiply this quaternion by
q. |
Quaterniond |
Quaterniond.mul(Quaterniondc q,
Quaterniond dest) |
Quaterniond |
Quaterniondc.mul(Quaterniondc q,
Quaterniond dest)
Multiply this quaternion by
q and store the result in dest. |
Quaterniond |
Quaterniond.nlerp(Quaterniondc q,
double factor)
Compute a linear (non-spherical) interpolation of
this and the given quaternion q
and store the result in this. |
Quaterniond |
Quaterniond.nlerp(Quaterniondc q,
double factor,
Quaterniond dest) |
Quaterniond |
Quaterniondc.nlerp(Quaterniondc q,
double factor,
Quaterniond dest)
Compute a linear (non-spherical) interpolation of
this and the given quaternion q
and store the result in dest. |
static Quaterniond |
Quaterniond.nlerpIterative(Quaterniondc[] qs,
double[] weights,
double dotThreshold,
Quaterniond dest)
Interpolate between all of the quaternions given in
qs via iterative non-spherical linear interpolation using the
specified interpolation factors weights, and store the result in dest. |
Quaterniond |
Quaterniond.nlerpIterative(Quaterniondc q,
double alpha,
double dotThreshold)
Compute linear (non-spherical) interpolations of
this and the given quaternion q
iteratively and store the result in this. |
Quaterniond |
Quaterniond.nlerpIterative(Quaterniondc q,
double alpha,
double dotThreshold,
Quaterniond dest) |
Quaterniond |
Quaterniondc.nlerpIterative(Quaterniondc q,
double alpha,
double dotThreshold,
Quaterniond dest)
Compute linear (non-spherical) interpolations of
this and the given quaternion q
iteratively and store the result in dest. |
Quaterniond |
Quaterniond.premul(Quaterniondc q)
Pre-multiply this quaternion by
q. |
Quaterniond |
Quaterniond.premul(Quaterniondc q,
Quaterniond dest) |
Quaterniond |
Quaterniondc.premul(Quaterniondc q,
Quaterniond dest)
Pre-multiply this quaternion by
q and store the result in dest. |
Matrix3d |
Matrix3d.reflect(Quaterniondc orientation)
Apply a mirror/reflection transformation to this matrix that reflects about a plane
specified via the plane orientation.
|
Matrix3d |
Matrix3d.reflect(Quaterniondc orientation,
Matrix3d dest) |
Matrix3d |
Matrix3dc.reflect(Quaterniondc orientation,
Matrix3d dest)
Apply a mirror/reflection transformation to this matrix that reflects through a plane
specified via the plane orientation, and store the result in
dest. |
Matrix4x3d |
Matrix4x3d.reflect(Quaterniondc orientation,
Vector3dc point)
Apply a mirror/reflection transformation to this matrix that reflects about a plane
specified via the plane orientation and a point on the plane.
|
Matrix4d |
Matrix4d.reflect(Quaterniondc orientation,
Vector3dc point)
Apply a mirror/reflection transformation to this matrix that reflects about a plane
specified via the plane orientation and a point on the plane.
|
Matrix4d |
Matrix4dc.reflect(Quaterniondc orientation,
Vector3dc point,
Matrix4d dest)
Apply a mirror/reflection transformation to this matrix that reflects about a plane
specified via the plane orientation and a point on the plane, and store the result in
dest. |
Matrix4d |
Matrix4d.reflect(Quaterniondc orientation,
Vector3dc point,
Matrix4d dest) |
Matrix4x3d |
Matrix4x3dc.reflect(Quaterniondc orientation,
Vector3dc point,
Matrix4x3d dest)
Apply a mirror/reflection transformation to this matrix that reflects about a plane
specified via the plane orientation and a point on the plane, and store the result in
dest. |
Matrix4x3d |
Matrix4x3d.reflect(Quaterniondc orientation,
Vector3dc point,
Matrix4x3d dest) |
Matrix3d |
Matrix3d.reflection(Quaterniondc orientation)
Set this matrix to a mirror/reflection transformation that reflects through a plane
specified via the plane orientation.
|
Matrix4x3d |
Matrix4x3d.reflection(Quaterniondc orientation,
Vector3dc point)
Set this matrix to a mirror/reflection transformation that reflects about a plane
specified via the plane orientation and a point on the plane.
|
Matrix4d |
Matrix4d.reflection(Quaterniondc orientation,
Vector3dc point)
Set this matrix to a mirror/reflection transformation that reflects about a plane
specified via the plane orientation and a point on the plane.
|
Matrix4x3d |
Matrix4x3d.rotate(Quaterniondc quat)
Apply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix. |
Vector3d |
Vector3d.rotate(Quaterniondc quat)
Rotate this vector by the given quaternion
quat and store the result in this. |
Matrix3d |
Matrix3d.rotate(Quaterniondc quat)
Apply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix. |
Matrix4d |
Matrix4d.rotate(Quaterniondc quat)
Apply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix. |
Vector4d |
Vector4d.rotate(Quaterniondc quat)
Transform this vector by the given quaternion
quat and store the result in this. |
Matrix3d |
Matrix3d.rotate(Quaterniondc quat,
Matrix3d dest)
Apply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix and store
the result in dest. |
Matrix3d |
Matrix3dc.rotate(Quaterniondc quat,
Matrix3d dest)
Apply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix and store
the result in dest. |
Matrix4d |
Matrix4dc.rotate(Quaterniondc quat,
Matrix4d dest)
Apply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix and store
the result in dest. |
Matrix4d |
Matrix4d.rotate(Quaterniondc quat,
Matrix4d dest)
Apply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix and store
the result in dest. |
Matrix4x3d |
Matrix4x3dc.rotate(Quaterniondc quat,
Matrix4x3d dest)
Apply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix and store
the result in dest. |
Matrix4x3d |
Matrix4x3d.rotate(Quaterniondc quat,
Matrix4x3d dest)
Apply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix and store
the result in dest. |
Vector3d |
Vector3d.rotate(Quaterniondc quat,
Vector3d dest) |
Vector3d |
Vector3dc.rotate(Quaterniondc quat,
Vector3d dest)
Rotate this vector by the given quaternion
quat and store the result in dest. |
Vector4d |
Vector4dc.rotate(Quaterniondc quat,
Vector4d dest)
Transform this vector by the given quaternion
quat and store the result in dest. |
Vector4d |
Vector4d.rotate(Quaterniondc quat,
Vector4d dest) |
Matrix4d |
Matrix4d.rotateAffine(Quaterniondc quat)
Apply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix. |
Matrix4d |
Matrix4dc.rotateAffine(Quaterniondc quat,
Matrix4d dest)
Apply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this affine matrix and store
the result in dest. |
Matrix4d |
Matrix4d.rotateAffine(Quaterniondc quat,
Matrix4d dest)
Apply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this affine matrix and store
the result in dest. |
Matrix4x3d |
Matrix4x3d.rotateAround(Quaterniondc quat,
double ox,
double oy,
double oz)
Apply the rotation transformation of the given
Quaterniondc to this matrix while using (ox, oy, oz) as the rotation origin. |
Matrix4d |
Matrix4d.rotateAround(Quaterniondc quat,
double ox,
double oy,
double oz)
Apply the rotation transformation of the given
Quaterniondc to this matrix while using (ox, oy, oz) as the rotation origin. |
Matrix4d |
Matrix4dc.rotateAround(Quaterniondc quat,
double ox,
double oy,
double oz,
Matrix4d dest)
Apply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix while using (ox, oy, oz) as the rotation origin,
and store the result in dest. |
Matrix4d |
Matrix4d.rotateAround(Quaterniondc quat,
double ox,
double oy,
double oz,
Matrix4d dest) |
Matrix4x3d |
Matrix4x3dc.rotateAround(Quaterniondc quat,
double ox,
double oy,
double oz,
Matrix4x3d dest)
Apply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix while using (ox, oy, oz) as the rotation origin,
and store the result in dest. |
Matrix4x3d |
Matrix4x3d.rotateAround(Quaterniondc quat,
double ox,
double oy,
double oz,
Matrix4x3d dest) |
Matrix4d |
Matrix4dc.rotateAroundAffine(Quaterniondc quat,
double ox,
double oy,
double oz,
Matrix4d dest)
Apply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this affine
matrix while using (ox, oy, oz) as the rotation origin, and store the result in dest. |
Matrix4d |
Matrix4d.rotateAroundAffine(Quaterniondc quat,
double ox,
double oy,
double oz,
Matrix4d dest) |
Matrix4d |
Matrix4d.rotateAroundLocal(Quaterniondc quat,
double ox,
double oy,
double oz)
Pre-multiply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix while using (ox, oy, oz)
as the rotation origin. |
Matrix4d |
Matrix4dc.rotateAroundLocal(Quaterniondc quat,
double ox,
double oy,
double oz,
Matrix4d dest)
Pre-multiply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix while using (ox, oy, oz)
as the rotation origin, and store the result in dest. |
Matrix4d |
Matrix4d.rotateAroundLocal(Quaterniondc quat,
double ox,
double oy,
double oz,
Matrix4d dest) |
Matrix4x3d |
Matrix4x3d.rotateLocal(Quaterniondc quat)
Pre-multiply the rotation transformation of the given
Quaterniondc to this matrix. |
Matrix3d |
Matrix3d.rotateLocal(Quaterniondc quat)
Pre-multiply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix. |
Matrix4d |
Matrix4d.rotateLocal(Quaterniondc quat)
Pre-multiply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix. |
Matrix3d |
Matrix3d.rotateLocal(Quaterniondc quat,
Matrix3d dest)
Pre-multiply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix and store
the result in dest. |
Matrix3d |
Matrix3dc.rotateLocal(Quaterniondc quat,
Matrix3d dest)
Pre-multiply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix and store
the result in dest. |
Matrix4d |
Matrix4dc.rotateLocal(Quaterniondc quat,
Matrix4d dest)
Pre-multiply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix and store
the result in dest. |
Matrix4d |
Matrix4d.rotateLocal(Quaterniondc quat,
Matrix4d dest)
Pre-multiply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix and store
the result in dest. |
Matrix4x3d |
Matrix4x3dc.rotateLocal(Quaterniondc quat,
Matrix4x3d dest)
Pre-multiply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix and store
the result in dest. |
Matrix4x3d |
Matrix4x3d.rotateLocal(Quaterniondc quat,
Matrix4x3d dest)
Pre-multiply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix and store
the result in dest. |
Matrix4d |
Matrix4dc.rotateTranslation(Quaterniondc quat,
Matrix4d dest)
Apply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix, which is assumed to only contain a translation, and store
the result in dest. |
Matrix4d |
Matrix4d.rotateTranslation(Quaterniondc quat,
Matrix4d dest)
Apply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix, which is assumed to only contain a translation, and store
the result in dest. |
Matrix4x3d |
Matrix4x3dc.rotateTranslation(Quaterniondc quat,
Matrix4x3d dest)
Apply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix, which is assumed to only contain a translation, and store
the result in dest. |
Matrix4x3d |
Matrix4x3d.rotateTranslation(Quaterniondc quat,
Matrix4x3d dest)
Apply the rotation - and possibly scaling - transformation of the given
Quaterniondc to this matrix, which is assumed to only contain a translation, and store
the result in dest. |
Matrix4x3d |
Matrix4x3d.rotation(Quaterniondc quat)
Set this matrix to the rotation - and possibly scaling - transformation of the given
Quaterniondc. |
Matrix3d |
Matrix3d.rotation(Quaterniondc quat)
Set this matrix to the rotation - and possibly scaling - transformation of the given
Quaterniondc. |
Matrix4d |
Matrix4d.rotation(Quaterniondc quat)
Set this matrix to the rotation - and possibly scaling - transformation of the given
Quaterniondc. |
Matrix4x3d |
Matrix4x3d.rotationAround(Quaterniondc quat,
double ox,
double oy,
double oz)
Set this matrix to a transformation composed of a rotation of the specified
Quaterniondc while using (ox, oy, oz) as the rotation origin. |
Matrix4d |
Matrix4d.rotationAround(Quaterniondc quat,
double ox,
double oy,
double oz)
Set this matrix to a transformation composed of a rotation of the specified
Quaterniondc while using (ox, oy, oz) as the rotation origin. |
Matrix4x3d |
Matrix4x3d.set(Quaterniondc q)
Set this matrix to be equivalent to the rotation - and possibly scaling - specified by the given
Quaterniondc. |
Matrix3d |
Matrix3d.set(Quaterniondc q)
Set this matrix to a rotation - and possibly scaling - equivalent to the given quaternion.
|
AxisAngle4f |
AxisAngle4f.set(Quaterniondc q)
Set this
AxisAngle4f to be equivalent to the given
Quaterniondc. |
Matrix4f |
Matrix4f.set(Quaterniondc q)
Set this matrix to be equivalent to the rotation specified by the given
Quaterniondc. |
AxisAngle4d |
AxisAngle4d.set(Quaterniondc q)
Set this
AxisAngle4d to be equivalent to the given
Quaterniondc. |
Matrix3f |
Matrix3f.set(Quaterniondc q)
Set this matrix to a rotation - and possibly scaling - equivalent to the given quaternion.
|
Quaterniond |
Quaterniond.set(Quaterniondc q)
Set this quaternion to be a copy of q.
|
Matrix4d |
Matrix4d.set(Quaterniondc q)
Set this matrix to be equivalent to the rotation - and possibly scaling - specified by the given
Quaterniondc. |
Matrix4x3f |
Matrix4x3f.set(Quaterniondc q)
Set this matrix to be equivalent to the rotation - and possibly scaling - specified by the given
Quaterniondc. |
Quaterniond |
Quaterniond.slerp(Quaterniondc target,
double alpha)
|
Quaterniond |
Quaterniond.slerp(Quaterniondc target,
double alpha,
Quaterniond dest) |
Quaterniond |
Quaterniondc.slerp(Quaterniondc target,
double alpha,
Quaterniond dest)
|
Matrix4x3d |
Matrix4x3d.translationRotate(double tx,
double ty,
double tz,
Quaterniondc quat)
Set
this matrix to T * R, where T is a translation by the given (tx, ty, tz) and
R is a rotation transformation specified by the given quaternion. |
Matrix4d |
Matrix4d.translationRotate(double tx,
double ty,
double tz,
Quaterniondc quat)
Set
this matrix to T * R, where T is a translation by the given (tx, ty, tz) and
R is a rotation - and possibly scaling - transformation specified by the given quaternion. |
Matrix4d |
Matrix4d.translationRotateScale(Vector3dc translation,
Quaterniondc quat,
double scale)
Set
this matrix to T * R * S, where T is the given translation,
R is a rotation transformation specified by the given quaternion, and S is a scaling transformation
which scales all three axes by scale. |
Matrix4x3d |
Matrix4x3d.translationRotateScale(Vector3dc translation,
Quaterniondc quat,
Vector3dc scale)
Set
this matrix to T * R * S, where T is the given translation,
R is a rotation transformation specified by the given quaternion, and S is a scaling transformation
which scales the axes by scale. |
Matrix4d |
Matrix4d.translationRotateScale(Vector3dc translation,
Quaterniondc quat,
Vector3dc scale)
Set
this matrix to T * R * S, where T is the given translation,
R is a rotation transformation specified by the given quaternion, and S is a scaling transformation
which scales the axes by scale. |
Matrix4d |
Matrix4d.translationRotateScaleInvert(Vector3dc translation,
Quaterniondc quat,
double scale)
Set
this matrix to (T * R * S)-1, where T is the given translation,
R is a rotation transformation specified by the given quaternion, and S is a scaling transformation
which scales all three axes by scale. |
Matrix4d |
Matrix4d.translationRotateScaleInvert(Vector3dc translation,
Quaterniondc quat,
Vector3dc scale)
Set
this matrix to (T * R * S)-1, where T is the given translation,
R is a rotation transformation specified by the given quaternion, and S is a scaling transformation
which scales the axes by scale. |
Matrix4x3d |
Matrix4x3d.translationRotateScaleMul(Vector3dc translation,
Quaterniondc quat,
Vector3dc scale,
Matrix4x3dc m)
Set
this matrix to T * R * S * M, where T is the given translation,
R is a rotation transformation specified by the given quaternion, S is a scaling transformation
which scales the axes by scale. |
Matrix4d |
Matrix4d.translationRotateScaleMulAffine(Vector3fc translation,
Quaterniondc quat,
Vector3fc scale,
Matrix4d m)
Set
this matrix to T * R * S * M, where T is the given translation,
R is a rotation - and possibly scaling - transformation specified by the given quaternion, S is a scaling transformation
which scales the axes by scale and M is an affine matrix. |
| Constructor and Description |
|---|
AxisAngle4d(Quaterniondc q)
Create a new
AxisAngle4d from the given Quaterniondc. |
Quaterniond(Quaterniondc source)
Create a new
Quaterniond and initialize its components to the same values as the given Quaterniond. |
Copyright © 2015–2019 JOML. All rights reserved.