Uses of Interface
org.joml.Quaterniondc
Packages that use Quaterniondc
-
Uses of Quaterniondc in org.joml
Classes in org.joml that implement QuaterniondcModifier and TypeClassDescriptionclass
Quaternion of 4 double-precision floats which can represent rotation and uniform scaling.Methods in org.joml that return QuaterniondcModifier and TypeMethodDescriptionstatic Quaterniondc
Quaterniond.nlerp
(Quaterniond[] qs, double[] weights, Quaterniond dest) Interpolate between all of the quaternions given inqs
via non-spherical linear interpolation using the specified interpolation factorsweights
, and store the result indest
.static Quaterniondc
Quaterniond.slerp
(Quaterniond[] qs, double[] weights, Quaterniond dest) Interpolate between all of the quaternions given inqs
via spherical linear interpolation using the specified interpolation factorsweights
, and store the result indest
.Methods in org.joml with parameters of type QuaterniondcModifier and TypeMethodDescriptionQuaterniond.add
(Quaterniondc q2) Addq2
to this quaternion.Quaterniond.add
(Quaterniondc q2, Quaterniond dest) Quaterniondc.add
(Quaterniondc q2, Quaterniond dest) Addq2
to this quaternion and store the result indest
.Quaterniond.conjugateBy
(Quaterniondc q) Conjugatethis
by the given quaternionq
by computingq * this * q^-1
.Quaterniond.conjugateBy
(Quaterniondc q, Quaterniond dest) Conjugatethis
by the given quaternionq
by computingq * this * q^-1
and store the result intodest
.Quaterniondc.conjugateBy
(Quaterniondc q, Quaterniond dest) Conjugatethis
by the given quaternionq
by computingq * this * q^-1
and store the result intodest
.Quaterniond.difference
(Quaterniondc other) Compute the difference betweenthis
and theother
quaternion and store the result inthis
.Quaterniond.difference
(Quaterniondc other, Quaterniond dest) Quaterniondc.difference
(Quaterniondc other, Quaterniond dest) Compute the difference betweenthis
and theother
quaternion and store the result indest
.Quaterniond.div
(Quaterniondc b) Dividethis
quaternion byb
.Quaterniond.div
(Quaterniondc b, Quaterniond dest) Quaterniondc.div
(Quaterniondc b, Quaterniond dest) Dividethis
quaternion byb
and store the result indest
.double
Quaterniond.dot
(Quaterniondc otherQuat) double
Quaterniondc.dot
(Quaterniondc otherQuat) Return the dot product of thisQuaterniond
andotherQuat
.boolean
Quaterniond.equals
(Quaterniondc q, double delta) boolean
Quaterniondc.equals
(Quaterniondc q, double delta) Compare the quaternion components ofthis
quaternion with the given quaternion using the givendelta
and return whether all of them are equal within a maximum difference ofdelta
.Quaterniond.mul
(Quaterniondc q) Multiply this quaternion byq
.Quaterniond.mul
(Quaterniondc q, Quaterniond dest) Quaterniondc.mul
(Quaterniondc q, Quaterniond dest) Multiply this quaternion byq
and store the result indest
.Quaterniond.nlerp
(Quaterniondc q, double factor) Compute a linear (non-spherical) interpolation ofthis
and the given quaternionq
and store the result inthis
.Quaterniond.nlerp
(Quaterniondc q, double factor, Quaterniond dest) Quaterniondc.nlerp
(Quaterniondc q, double factor, Quaterniond dest) Compute a linear (non-spherical) interpolation ofthis
and the given quaternionq
and store the result indest
.static Quaterniond
Quaterniond.nlerpIterative
(Quaterniondc[] qs, double[] weights, double dotThreshold, Quaterniond dest) Interpolate between all of the quaternions given inqs
via iterative non-spherical linear interpolation using the specified interpolation factorsweights
, and store the result indest
.Quaterniond.nlerpIterative
(Quaterniondc q, double alpha, double dotThreshold) Compute linear (non-spherical) interpolations ofthis
and the given quaternionq
iteratively and store the result inthis
.Quaterniond.nlerpIterative
(Quaterniondc q, double alpha, double dotThreshold, Quaterniond dest) Quaterniondc.nlerpIterative
(Quaterniondc q, double alpha, double dotThreshold, Quaterniond dest) Compute linear (non-spherical) interpolations ofthis
and the given quaternionq
iteratively and store the result indest
.Quaterniond.premul
(Quaterniondc q) Pre-multiply this quaternion byq
.Quaterniond.premul
(Quaterniondc q, Quaterniond dest) Quaterniondc.premul
(Quaterniondc q, Quaterniond dest) Pre-multiply this quaternion byq
and store the result indest
.Matrix3d.reflect
(Quaterniondc orientation) Apply a mirror/reflection transformation to this matrix that reflects about a plane specified via the plane orientation.Matrix3d.reflect
(Quaterniondc orientation, Matrix3d dest) 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 indest
.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.reflect
(Quaterniondc orientation, Vector3dc point, Matrix4d dest) 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 indest
.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.Matrix4x3d.reflect
(Quaterniondc orientation, Vector3dc point, Matrix4x3d dest) 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 indest
.Matrix3d.reflection
(Quaterniondc orientation) Set this matrix to a mirror/reflection transformation that reflects through a plane specified via the plane orientation.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.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.Matrix3d.rotate
(Quaterniondc quat) Apply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix.Matrix3d.rotate
(Quaterniondc quat, Matrix3d dest) Apply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix and store the result indest
.Matrix3dc.rotate
(Quaterniondc quat, Matrix3d dest) Apply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix and store the result indest
.Matrix4d.rotate
(Quaterniondc quat) Apply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix.Matrix4d.rotate
(Quaterniondc quat, Matrix4d dest) Apply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix and store the result indest
.Matrix4dc.rotate
(Quaterniondc quat, Matrix4d dest) Apply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix and store the result indest
.Matrix4x3d.rotate
(Quaterniondc quat) Apply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix.Matrix4x3d.rotate
(Quaterniondc quat, Matrix4x3d dest) Apply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix and store the result indest
.Matrix4x3dc.rotate
(Quaterniondc quat, Matrix4x3d dest) Apply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix and store the result indest
.Vector3d.rotate
(Quaterniondc quat) Rotate this vector by the given quaternionquat
and store the result inthis
.Vector3d.rotate
(Quaterniondc quat, Vector3d dest) Vector3dc.rotate
(Quaterniondc quat, Vector3d dest) Rotate this vector by the given quaternionquat
and store the result indest
.Vector4d.rotate
(Quaterniondc quat) Transform this vector by the given quaternionquat
and store the result inthis
.Vector4d.rotate
(Quaterniondc quat, Vector4d dest) Vector4dc.rotate
(Quaterniondc quat, Vector4d dest) Transform this vector by the given quaternionquat
and store the result indest
.Matrix4d.rotateAffine
(Quaterniondc quat) Apply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix.Matrix4d.rotateAffine
(Quaterniondc quat, Matrix4d dest) Apply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to thisaffine
matrix and store the result indest
.Matrix4dc.rotateAffine
(Quaterniondc quat, Matrix4d dest) Apply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to thisaffine
matrix and store the result indest
.Matrix4d.rotateAround
(Quaterniondc quat, double ox, double oy, double oz) Apply the rotation transformation of the givenQuaterniondc
to this matrix while using(ox, oy, oz)
as the rotation origin.Matrix4d.rotateAround
(Quaterniondc quat, double ox, double oy, double oz, Matrix4d dest) Matrix4dc.rotateAround
(Quaterniondc quat, double ox, double oy, double oz, Matrix4d dest) Apply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix while using(ox, oy, oz)
as the rotation origin, and store the result indest
.Matrix4x3d.rotateAround
(Quaterniondc quat, double ox, double oy, double oz) Apply the rotation transformation of the givenQuaterniondc
to this matrix while using(ox, oy, oz)
as the rotation origin.Matrix4x3d.rotateAround
(Quaterniondc quat, double ox, double oy, double oz, Matrix4x3d dest) Matrix4x3dc.rotateAround
(Quaterniondc quat, double ox, double oy, double oz, Matrix4x3d dest) Apply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix while using(ox, oy, oz)
as the rotation origin, and store the result indest
.Matrix4d.rotateAroundAffine
(Quaterniondc quat, double ox, double oy, double oz, Matrix4d dest) Matrix4dc.rotateAroundAffine
(Quaterniondc quat, double ox, double oy, double oz, Matrix4d dest) Apply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to thisaffine
matrix while using(ox, oy, oz)
as the rotation origin, and store the result indest
.Matrix4d.rotateAroundLocal
(Quaterniondc quat, double ox, double oy, double oz) Pre-multiply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix while using(ox, oy, oz)
as the rotation origin.Matrix4d.rotateAroundLocal
(Quaterniondc quat, double ox, double oy, double oz, Matrix4d dest) Matrix4dc.rotateAroundLocal
(Quaterniondc quat, double ox, double oy, double oz, Matrix4d dest) Pre-multiply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix while using(ox, oy, oz)
as the rotation origin, and store the result indest
.Matrix3d.rotateLocal
(Quaterniondc quat) Pre-multiply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix.Matrix3d.rotateLocal
(Quaterniondc quat, Matrix3d dest) Pre-multiply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix and store the result indest
.Matrix3dc.rotateLocal
(Quaterniondc quat, Matrix3d dest) Pre-multiply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix and store the result indest
.Matrix4d.rotateLocal
(Quaterniondc quat) Pre-multiply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix.Matrix4d.rotateLocal
(Quaterniondc quat, Matrix4d dest) Pre-multiply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix and store the result indest
.Matrix4dc.rotateLocal
(Quaterniondc quat, Matrix4d dest) Pre-multiply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix and store the result indest
.Matrix4x3d.rotateLocal
(Quaterniondc quat) Pre-multiply the rotation transformation of the givenQuaterniondc
to this matrix.Matrix4x3d.rotateLocal
(Quaterniondc quat, Matrix4x3d dest) Pre-multiply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix and store the result indest
.Matrix4x3dc.rotateLocal
(Quaterniondc quat, Matrix4x3d dest) Pre-multiply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix and store the result indest
.Matrix4d.rotateTranslation
(Quaterniondc quat, Matrix4d dest) Apply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix, which is assumed to only contain a translation, and store the result indest
.Matrix4dc.rotateTranslation
(Quaterniondc quat, Matrix4d dest) Apply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix, which is assumed to only contain a translation, and store the result indest
.Matrix4x3d.rotateTranslation
(Quaterniondc quat, Matrix4x3d dest) Apply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix, which is assumed to only contain a translation, and store the result indest
.Matrix4x3dc.rotateTranslation
(Quaterniondc quat, Matrix4x3d dest) Apply the rotation - and possibly scaling - transformation of the givenQuaterniondc
to this matrix, which is assumed to only contain a translation, and store the result indest
.Matrix3d.rotation
(Quaterniondc quat) Set this matrix to the rotation - and possibly scaling - transformation of the givenQuaterniondc
.Matrix4d.rotation
(Quaterniondc quat) Set this matrix to the rotation - and possibly scaling - transformation of the givenQuaterniondc
.Matrix4x3d.rotation
(Quaterniondc quat) Set this matrix to the rotation - and possibly scaling - transformation of the givenQuaterniondc
.Matrix4d.rotationAround
(Quaterniondc quat, double ox, double oy, double oz) Set this matrix to a transformation composed of a rotation of the specifiedQuaterniondc
while using(ox, oy, oz)
as the rotation origin.Matrix4x3d.rotationAround
(Quaterniondc quat, double ox, double oy, double oz) Set this matrix to a transformation composed of a rotation of the specifiedQuaterniondc
while using(ox, oy, oz)
as the rotation origin.AxisAngle4d.set
(Quaterniondc q) Set thisAxisAngle4d
to be equivalent to the givenQuaterniondc
.AxisAngle4f.set
(Quaterniondc q) Set thisAxisAngle4f
to be equivalent to the givenQuaterniondc
.Matrix3d.set
(Quaterniondc q) Set this matrix to a rotation - and possibly scaling - equivalent to the given quaternion.Matrix3f.set
(Quaterniondc q) Set this matrix to a rotation - and possibly scaling - equivalent to the given quaternion.Matrix4d.set
(Quaterniondc q) Set this matrix to be equivalent to the rotation - and possibly scaling - specified by the givenQuaterniondc
.Matrix4f.set
(Quaterniondc q) Set this matrix to be equivalent to the rotation specified by the givenQuaterniondc
.Matrix4x3d.set
(Quaterniondc q) Set this matrix to be equivalent to the rotation - and possibly scaling - specified by the givenQuaterniondc
.Matrix4x3f.set
(Quaterniondc q) Set this matrix to be equivalent to the rotation - and possibly scaling - specified by the givenQuaterniondc
.Quaterniond.set
(Quaterniondc q) Set this quaternion to be a copy of q.Quaternionf.set
(Quaterniondc q) Set this quaternion to be a copy ofq
.Quaterniond.slerp
(Quaterniondc target, double alpha) Quaterniond.slerp
(Quaterniondc target, double alpha, Quaterniond dest) Quaterniondc.slerp
(Quaterniondc target, double alpha, Quaterniond dest) Matrix4d.translationRotate
(double tx, double ty, double tz, Quaterniondc quat) Setthis
matrix toT * R
, whereT
is a translation by the given(tx, ty, tz)
andR
is a rotation - and possibly scaling - transformation specified by the given quaternion.Matrix4d.translationRotate
(Vector3dc translation, Quaterniondc quat) Setthis
matrix toT * R
, whereT
is the giventranslation
andR
is a rotation transformation specified by the given quaternion.Matrix4x3d.translationRotate
(double tx, double ty, double tz, Quaterniondc quat) Setthis
matrix toT * R
, whereT
is a translation by the given(tx, ty, tz)
andR
is a rotation transformation specified by the given quaternion.Matrix4x3d.translationRotate
(Vector3dc translation, Quaterniondc quat) Setthis
matrix toT * R
, whereT
is the giventranslation
andR
is a rotation transformation specified by the given quaternion.Matrix4x3d.translationRotateInvert
(Vector3dc translation, Quaterniondc quat) Setthis
matrix to(T * R)-1
, whereT
is the giventranslation
andR
is a rotation transformation specified by the given quaternion.Matrix4d.translationRotateScale
(Vector3dc translation, Quaterniondc quat, double scale) Setthis
matrix toT * R * S
, whereT
is the giventranslation
,R
is a rotation transformation specified by the given quaternion, andS
is a scaling transformation which scales all three axes byscale
.Matrix4d.translationRotateScale
(Vector3dc translation, Quaterniondc quat, Vector3dc scale) Setthis
matrix toT * R * S
, whereT
is the giventranslation
,R
is a rotation transformation specified by the given quaternion, andS
is a scaling transformation which scales the axes byscale
.Matrix4x3d.translationRotateScale
(Vector3dc translation, Quaterniondc quat, Vector3dc scale) Setthis
matrix toT * R * S
, whereT
is the giventranslation
,R
is a rotation transformation specified by the given quaternion, andS
is a scaling transformation which scales the axes byscale
.Matrix4d.translationRotateScaleInvert
(Vector3dc translation, Quaterniondc quat, double scale) Setthis
matrix to(T * R * S)-1
, whereT
is the giventranslation
,R
is a rotation transformation specified by the given quaternion, andS
is a scaling transformation which scales all three axes byscale
.Matrix4d.translationRotateScaleInvert
(Vector3dc translation, Quaterniondc quat, Vector3dc scale) Setthis
matrix to(T * R * S)-1
, whereT
is the giventranslation
,R
is a rotation transformation specified by the given quaternion, andS
is a scaling transformation which scales the axes byscale
.Matrix4x3d.translationRotateScaleMul
(Vector3dc translation, Quaterniondc quat, Vector3dc scale, Matrix4x3dc m) Setthis
matrix toT * R * S * M
, whereT
is the giventranslation
,R
is a rotation transformation specified by the given quaternion,S
is a scaling transformation which scales the axes byscale
.Matrix4d.translationRotateScaleMulAffine
(Vector3fc translation, Quaterniondc quat, Vector3fc scale, Matrix4d m) Setthis
matrix toT * R * S * M
, whereT
is the giventranslation
,R
is a rotation - and possibly scaling - transformation specified by the given quaternion,S
is a scaling transformation which scales the axes byscale
andM
is anaffine
matrix.Constructors in org.joml with parameters of type QuaterniondcModifierConstructorDescriptionCreate a newAxisAngle4d
from the givenQuaterniondc
.Quaterniond
(Quaterniondc source) Create a newQuaterniond
and initialize its components to the same values as the givenQuaterniondc
.Quaternionf
(Quaterniondc source) Create a newQuaternionf
and initialize its components to the same values as the givenQuaterniondc
.