Uses of Class
org.joml.Quaterniond
Packages that use Quaterniond
-
Uses of Quaterniond in org.joml
Methods in org.joml that return QuaterniondModifier and TypeMethodDescriptionQuaterniond.add
(double x, double y, double z, double w) Add the quaternion(x, y, z, w)
to this quaternion.Quaterniond.add
(double x, double y, double z, double w, Quaterniond dest) Quaterniond.add
(Quaterniondc q2) Addq2
to this quaternion.Quaterniond.add
(Quaterniondc q2, Quaterniond dest) Quaterniondc.add
(double x, double y, double z, double w, Quaterniond dest) Add the quaternion(x, y, z, w)
to this quaternion and store the result indest
.Quaterniondc.add
(Quaterniondc q2, Quaterniond dest) Addq2
to this quaternion and store the result indest
.QuaterniondInterpolator.computeWeightedAverage
(Quaterniond[] qs, double[] weights, int maxSvdIterations, Quaterniond dest) Compute the weighted average of all of the quaternions given inqs
using the specified interpolation factorsweights
, and store the result indest
.Quaterniond.conjugate()
Conjugate this quaternion.Quaterniond.conjugate
(Quaterniond dest) Quaterniondc.conjugate
(Quaterniond dest) Conjugate 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
.Quaterniond.fromAxisAngleDeg
(double axisX, double axisY, double axisZ, double angle) Set this quaternion to be a representation of the supplied axis and angle (in degrees).Quaterniond.fromAxisAngleDeg
(Vector3dc axis, double angle) Set this quaternion to be a representation of the supplied axis and angle (in degrees).Quaterniond.fromAxisAngleRad
(double axisX, double axisY, double axisZ, double angle) Set this quaternion to be a representation of the supplied axis and angle (in radians).Quaterniond.fromAxisAngleRad
(Vector3dc axis, double angle) Set this quaternion to be a representation of the supplied axis and angle (in radians).AxisAngle4d.get
(Quaterniond q) Set the givenQuaterniond
to be equivalent to thisAxisAngle4d
rotation.AxisAngle4f.get
(Quaterniond q) Set the givenQuaterniond
to be equivalent to thisAxisAngle4f
rotation.Quaterniond.get
(Quaterniond dest) Set the givenQuaterniond
to the values ofthis
.Quaterniondc.get
(Quaterniond dest) Set the givenQuaterniond
to the values ofthis
.Quaternionf.get
(Quaterniond dest) Quaternionfc.get
(Quaterniond dest) Set the givenQuaterniond
to the values ofthis
.Matrix3d.getNormalizedRotation
(Quaterniond dest) Matrix3dc.getNormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix3f.getNormalizedRotation
(Quaterniond dest) Matrix3fc.getNormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix4d.getNormalizedRotation
(Quaterniond dest) Matrix4dc.getNormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix4f.getNormalizedRotation
(Quaterniond dest) Matrix4fc.getNormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix4x3d.getNormalizedRotation
(Quaterniond dest) Matrix4x3dc.getNormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix4x3f.getNormalizedRotation
(Quaterniond dest) Matrix4x3fc.getNormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix3d.getUnnormalizedRotation
(Quaterniond dest) Matrix3dc.getUnnormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix3f.getUnnormalizedRotation
(Quaterniond dest) Matrix3fc.getUnnormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix4d.getUnnormalizedRotation
(Quaterniond dest) Matrix4dc.getUnnormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix4f.getUnnormalizedRotation
(Quaterniond dest) Matrix4fc.getUnnormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix4x3d.getUnnormalizedRotation
(Quaterniond dest) Matrix4x3dc.getUnnormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix4x3f.getUnnormalizedRotation
(Quaterniond dest) Matrix4x3fc.getUnnormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Quaterniond.identity()
Set this quaternion to the identity.Quaterniond.integrate
(double dt, double vx, double vy, double vz) Integrate the rotation given by the angular velocity(vx, vy, vz)
around the x, y and z axis, respectively, with respect to the given elapsed time deltadt
and add the differentiate rotation to the rotation represented by this quaternion.Quaterniond.integrate
(double dt, double vx, double vy, double vz, Quaterniond dest) Quaterniondc.integrate
(double dt, double vx, double vy, double vz, Quaterniond dest) Integrate the rotation given by the angular velocity(vx, vy, vz)
around the x, y and z axis, respectively, with respect to the given elapsed time deltadt
and add the differentiate rotation to the rotation represented by this quaternion and store the result intodest
.Quaterniond.invert()
Invert this quaternion andnormalize
it.Quaterniond.invert
(Quaterniond dest) Quaterniondc.invert
(Quaterniond dest) Invert this quaternion and store thenormalized
result indest
.Quaterniond.lookAlong
(double dirX, double dirY, double dirZ, double upX, double upY, double upZ) Apply a rotation to this quaternion that maps the given direction to the positive Z axis.Quaterniond.lookAlong
(double dirX, double dirY, double dirZ, double upX, double upY, double upZ, Quaterniond dest) Apply a rotation to this quaternion that maps the given direction to the positive Z axis.Quaterniond.lookAlong
(Vector3dc dir, Vector3dc up, Quaterniond dest) Quaterniondc.lookAlong
(double dirX, double dirY, double dirZ, double upX, double upY, double upZ, Quaterniond dest) Apply a rotation to this quaternion that maps the given direction to the positive Z axis, and store the result indest
.Quaterniondc.lookAlong
(Vector3dc dir, Vector3dc up, Quaterniond dest) Apply a rotation to this quaternion that maps the given direction to the positive Z axis, and store the result indest
.Quaterniond.mul
(double f) Multiply this quaternion by the given scalar.Quaterniond.mul
(double qx, double qy, double qz, double qw) Multiply this quaternion by the quaternion represented via(qx, qy, qz, qw)
.Quaterniond.mul
(double qx, double qy, double qz, double qw, Quaterniond dest) Quaterniond.mul
(double f, Quaterniond dest) Quaterniond.mul
(Quaterniondc q) Multiply this quaternion byq
.Quaterniond.mul
(Quaterniondc q, Quaterniond dest) Quaterniondc.mul
(double qx, double qy, double qz, double qw, Quaterniond dest) Multiply this quaternion by the quaternion represented via(qx, qy, qz, qw)
and store the result indest
.Quaterniondc.mul
(double f, Quaterniond dest) Multiply this quaternion by the given scalar and store the result indest
.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.normalize()
Normalize this quaternion.Quaterniond.normalize
(Quaterniond dest) Quaterniondc.normalize
(Quaterniond dest) Normalize this quaternion and store the result indest
.Quaterniond.premul
(double qx, double qy, double qz, double qw) Pre-multiply this quaternion by the quaternion represented via(qx, qy, qz, qw)
.Quaterniond.premul
(double qx, double qy, double qz, double qw, Quaterniond dest) Quaterniond.premul
(Quaterniondc q) Pre-multiply this quaternion byq
.Quaterniond.premul
(Quaterniondc q, Quaterniond dest) Quaterniondc.premul
(double qx, double qy, double qz, double qw, Quaterniond dest) Pre-multiply this quaternion by the quaternion represented via(qx, qy, qz, qw)
and store the result indest
.Quaterniondc.premul
(Quaterniondc q, Quaterniond dest) Pre-multiply this quaternion byq
and store the result indest
.Quaterniond.rotateAxis
(double angle, double axisX, double axisY, double axisZ) Apply a rotation tothis
quaternion rotating the given radians about the specified axis.Quaterniond.rotateAxis
(double angle, double axisX, double axisY, double axisZ, Quaterniond dest) Quaterniond.rotateAxis
(double angle, Vector3dc axis) Apply a rotation tothis
quaternion rotating the given radians about the specified axis.Quaterniond.rotateAxis
(double angle, Vector3dc axis, Quaterniond dest) Quaterniondc.rotateAxis
(double angle, double axisX, double axisY, double axisZ, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the specified axis and store the result indest
.Quaterniondc.rotateAxis
(double angle, Vector3dc axis, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the specified axis and store the result indest
.Quaterniond.rotateLocalX
(double angle) Apply a rotation tothis
quaternion rotating the given radians about the local x axis.Quaterniond.rotateLocalX
(double angle, Quaterniond dest) Quaterniondc.rotateLocalX
(double angle, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the local x axis and store the result indest
.Quaterniond.rotateLocalY
(double angle) Apply a rotation tothis
quaternion rotating the given radians about the local y axis.Quaterniond.rotateLocalY
(double angle, Quaterniond dest) Quaterniondc.rotateLocalY
(double angle, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the local y axis and store the result indest
.Quaterniond.rotateLocalZ
(double angle) Apply a rotation tothis
quaternion rotating the given radians about the local z axis.Quaterniond.rotateLocalZ
(double angle, Quaterniond dest) Quaterniondc.rotateLocalZ
(double angle, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the local z axis and store the result indest
.Quaterniond.rotateTo
(double fromDirX, double fromDirY, double fromDirZ, double toDirX, double toDirY, double toDirZ) Apply a rotation tothis
that rotates thefromDir
vector to point alongtoDir
.Quaterniond.rotateTo
(double fromDirX, double fromDirY, double fromDirZ, double toDirX, double toDirY, double toDirZ, Quaterniond dest) Apply a rotation tothis
that rotates thefromDir
vector to point alongtoDir
.Quaterniond.rotateTo
(Vector3dc fromDir, Vector3dc toDir, Quaterniond dest) Quaterniondc.rotateTo
(double fromDirX, double fromDirY, double fromDirZ, double toDirX, double toDirY, double toDirZ, Quaterniond dest) Apply a rotation tothis
that rotates thefromDir
vector to point alongtoDir
and store the result indest
.Quaterniondc.rotateTo
(Vector3dc fromDir, Vector3dc toDir, Quaterniond dest) Apply a rotation tothis
that rotates thefromDir
vector to point alongtoDir
and store the result indest
.Quaterniond.rotateX
(double angle) Apply a rotation tothis
quaternion rotating the given radians about the x axis.Quaterniond.rotateX
(double angle, Quaterniond dest) Quaterniondc.rotateX
(double angle, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the x axis and store the result indest
.Quaterniond.rotateXYZ
(double angleX, double angleY, double angleZ) Apply a rotation tothis
quaternion rotating the given radians about the cartesian base unit axes, called the euler angles using rotation sequenceXYZ
.Quaterniond.rotateXYZ
(double angleX, double angleY, double angleZ, Quaterniond dest) Quaterniondc.rotateXYZ
(double angleX, double angleY, double angleZ, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the cartesian base unit axes, called the euler angles using rotation sequenceXYZ
and store the result indest
.Quaterniond.rotateY
(double angle) Apply a rotation tothis
quaternion rotating the given radians about the y axis.Quaterniond.rotateY
(double angle, Quaterniond dest) Quaterniondc.rotateY
(double angle, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the y axis and store the result indest
.Quaterniond.rotateYXZ
(double angleY, double angleX, double angleZ) Apply a rotation tothis
quaternion rotating the given radians about the cartesian base unit axes, called the euler angles, using the rotation sequenceYXZ
.Quaterniond.rotateYXZ
(double angleY, double angleX, double angleZ, Quaterniond dest) Quaterniondc.rotateYXZ
(double angleY, double angleX, double angleZ, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the cartesian base unit axes, called the euler angles, using the rotation sequenceYXZ
and store the result indest
.Quaterniond.rotateZ
(double angle) Apply a rotation tothis
quaternion rotating the given radians about the z axis.Quaterniond.rotateZ
(double angle, Quaterniond dest) Quaterniondc.rotateZ
(double angle, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the z axis and store the result indest
.Quaterniond.rotateZYX
(double angleZ, double angleY, double angleX) Apply a rotation tothis
quaternion rotating the given radians about the cartesian base unit axes, called the euler angles, using the rotation sequenceZYX
.Quaterniond.rotateZYX
(double angleZ, double angleY, double angleX, Quaterniond dest) Quaterniondc.rotateZYX
(double angleZ, double angleY, double angleX, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the cartesian base unit axes, called the euler angles, using the rotation sequenceZYX
and store the result indest
.Quaterniond.rotationAxis
(double angle, double axisX, double axisY, double axisZ) Set this quaternion to a rotation of the given angle in radians about the supplied axis.Quaterniond.rotationAxis
(AxisAngle4f axisAngle) Set thisQuaterniond
to a rotation of the given angle in radians about the supplied axis, all of which are specified via theAxisAngle4f
.Quaterniond.rotationTo
(double fromDirX, double fromDirY, double fromDirZ, double toDirX, double toDirY, double toDirZ) Setthis
quaternion to a rotation that rotates thefromDir
vector to point alongtoDir
.Quaterniond.rotationTo
(Vector3dc fromDir, Vector3dc toDir) Setthis
quaternion to a rotation that rotates thefromDir
vector to point alongtoDir
.Vector3d.rotationTo
(double toDirX, double toDirY, double toDirZ, Quaterniond dest) Vector3d.rotationTo
(Vector3dc toDir, Quaterniond dest) Vector3dc.rotationTo
(double toDirX, double toDirY, double toDirZ, Quaterniond dest) Compute the quaternion representing a rotation ofthis
vector to point along(toDirX, toDirY, toDirZ)
and store the result indest
.Vector3dc.rotationTo
(Vector3dc toDir, Quaterniond dest) Compute the quaternion representing a rotation ofthis
vector to point alongtoDir
and store the result indest
.Quaterniond.rotationX
(double angle) Set this quaternion to represent a rotation of the given radians about the x axis.Quaterniond.rotationXYZ
(double angleX, double angleY, double angleZ) Set this quaternion from the supplied euler angles (in radians) with rotation order XYZ.Quaterniond.rotationY
(double angle) Set this quaternion to represent a rotation of the given radians about the y axis.Quaterniond.rotationYXZ
(double angleY, double angleX, double angleZ) Set this quaternion from the supplied euler angles (in radians) with rotation order YXZ.Quaterniond.rotationZ
(double angle) Set this quaternion to represent a rotation of the given radians about the z axis.Quaterniond.rotationZYX
(double angleZ, double angleY, double angleX) Set this quaternion from the supplied euler angles (in radians) with rotation order ZYX.Quaterniond.scale
(double factor) Apply scaling to this quaternion, which results in any vector transformed by this quaternion to change its length by the givenfactor
.Quaterniond.scale
(double factor, Quaterniond dest) Quaterniondc.scale
(double factor, Quaterniond dest) Apply scaling to this quaternion, which results in any vector transformed by the quaternion to change its length by the givenfactor
, and store the result indest
.Quaterniond.scaling
(double factor) Set this quaternion to represent scaling, which results in a transformed vector to change its length by the givenfactor
.Quaterniond.set
(double x, double y, double z, double w) Set this quaternion to the new values.Quaterniond.set
(AxisAngle4d axisAngle) Set thisQuaterniond
to be equivalent to the givenAxisAngle4d
.Quaterniond.set
(AxisAngle4f axisAngle) Set thisQuaterniond
to be equivalent to the givenAxisAngle4f
.Quaterniond.set
(Quaterniondc q) Set this quaternion to be a copy of q.Quaterniond.set
(Quaternionfc q) Set this quaternion to be a copy of q.Quaterniond.setAngleAxis
(double angle, double x, double y, double z) Set this quaternion to a rotation equivalent to the supplied axis and angle (in radians).Quaterniond.setAngleAxis
(double angle, Vector3dc axis) Set this quaternion to be a representation of the supplied axis and angle (in radians).Quaterniond.setFromNormalized
(Matrix3dc mat) Set this quaternion to be a representation of the rotational component of the given matrix.Quaterniond.setFromNormalized
(Matrix3fc mat) Set this quaternion to be a representation of the rotational component of the given matrix.Quaterniond.setFromNormalized
(Matrix4dc mat) Set this quaternion to be a representation of the rotational component of the given matrix.Quaterniond.setFromNormalized
(Matrix4fc mat) Set this quaternion to be a representation of the rotational component of the given matrix.Quaterniond.setFromNormalized
(Matrix4x3dc mat) Set this quaternion to be a representation of the rotational component of the given matrix.Quaterniond.setFromNormalized
(Matrix4x3fc mat) Set this quaternion to be a representation of the rotational component of the given matrix.Quaterniond.setFromUnnormalized
(Matrix3dc mat) Set this quaternion to be a representation of the rotational component of the given matrix.Quaterniond.setFromUnnormalized
(Matrix3fc mat) Set this quaternion to be a representation of the rotational component of the given matrix.Quaterniond.setFromUnnormalized
(Matrix4dc mat) Set this quaternion to be a representation of the rotational component of the given matrix.Quaterniond.setFromUnnormalized
(Matrix4fc mat) Set this quaternion to be a representation of the rotational component of the given matrix.Quaterniond.setFromUnnormalized
(Matrix4x3dc mat) Set this quaternion to be a representation of the rotational component of the given matrix.Quaterniond.setFromUnnormalized
(Matrix4x3fc mat) Set this quaternion to be a representation of the rotational component of the given matrix.Quaterniond.slerp
(Quaterniondc target, double alpha) Quaterniond.slerp
(Quaterniondc target, double alpha, Quaterniond dest) Quaterniondc.slerp
(Quaterniondc target, double alpha, Quaterniond dest) Methods in org.joml with parameters of type QuaterniondModifier and TypeMethodDescriptionQuaterniond.add
(double x, double y, double z, double w, Quaterniond dest) Quaterniond.add
(Quaterniondc q2, Quaterniond dest) Quaterniondc.add
(double x, double y, double z, double w, Quaterniond dest) Add the quaternion(x, y, z, w)
to this quaternion and store the result indest
.Quaterniondc.add
(Quaterniondc q2, Quaterniond dest) Addq2
to this quaternion and store the result indest
.QuaterniondInterpolator.computeWeightedAverage
(Quaterniond[] qs, double[] weights, int maxSvdIterations, Quaterniond dest) Compute the weighted average of all of the quaternions given inqs
using the specified interpolation factorsweights
, and store the result indest
.Quaterniond.conjugate
(Quaterniond dest) Quaterniondc.conjugate
(Quaterniond dest) Conjugate this quaternion and store the result indest
.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, Quaterniond dest) Quaterniondc.difference
(Quaterniondc other, Quaterniond dest) Compute the difference betweenthis
and theother
quaternion and store the result indest
.Quaterniond.div
(Quaterniondc b, Quaterniond dest) Quaterniondc.div
(Quaterniondc b, Quaterniond dest) Dividethis
quaternion byb
and store the result indest
.AxisAngle4d.get
(Quaterniond q) Set the givenQuaterniond
to be equivalent to thisAxisAngle4d
rotation.AxisAngle4f.get
(Quaterniond q) Set the givenQuaterniond
to be equivalent to thisAxisAngle4f
rotation.Quaterniond.get
(Quaterniond dest) Set the givenQuaterniond
to the values ofthis
.Quaterniondc.get
(Quaterniond dest) Set the givenQuaterniond
to the values ofthis
.Quaternionf.get
(Quaterniond dest) Quaternionfc.get
(Quaterniond dest) Set the givenQuaterniond
to the values ofthis
.Matrix3d.getNormalizedRotation
(Quaterniond dest) Matrix3dc.getNormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix3f.getNormalizedRotation
(Quaterniond dest) Matrix3fc.getNormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix4d.getNormalizedRotation
(Quaterniond dest) Matrix4dc.getNormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix4f.getNormalizedRotation
(Quaterniond dest) Matrix4fc.getNormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix4x3d.getNormalizedRotation
(Quaterniond dest) Matrix4x3dc.getNormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix4x3f.getNormalizedRotation
(Quaterniond dest) Matrix4x3fc.getNormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix3d.getUnnormalizedRotation
(Quaterniond dest) Matrix3dc.getUnnormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix3f.getUnnormalizedRotation
(Quaterniond dest) Matrix3fc.getUnnormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix4d.getUnnormalizedRotation
(Quaterniond dest) Matrix4dc.getUnnormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix4f.getUnnormalizedRotation
(Quaterniond dest) Matrix4fc.getUnnormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix4x3d.getUnnormalizedRotation
(Quaterniond dest) Matrix4x3dc.getUnnormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Matrix4x3f.getUnnormalizedRotation
(Quaterniond dest) Matrix4x3fc.getUnnormalizedRotation
(Quaterniond dest) Get the current values ofthis
matrix and store the represented rotation into the givenQuaterniond
.Quaterniond.integrate
(double dt, double vx, double vy, double vz, Quaterniond dest) Quaterniondc.integrate
(double dt, double vx, double vy, double vz, Quaterniond dest) Integrate the rotation given by the angular velocity(vx, vy, vz)
around the x, y and z axis, respectively, with respect to the given elapsed time deltadt
and add the differentiate rotation to the rotation represented by this quaternion and store the result intodest
.Quaterniond.invert
(Quaterniond dest) Quaterniondc.invert
(Quaterniond dest) Invert this quaternion and store thenormalized
result indest
.Quaterniond.lookAlong
(double dirX, double dirY, double dirZ, double upX, double upY, double upZ, Quaterniond dest) Quaterniond.lookAlong
(Vector3dc dir, Vector3dc up, Quaterniond dest) Quaterniondc.lookAlong
(double dirX, double dirY, double dirZ, double upX, double upY, double upZ, Quaterniond dest) Apply a rotation to this quaternion that maps the given direction to the positive Z axis, and store the result indest
.Quaterniondc.lookAlong
(Vector3dc dir, Vector3dc up, Quaterniond dest) Apply a rotation to this quaternion that maps the given direction to the positive Z axis, and store the result indest
.Quaterniond.mul
(double qx, double qy, double qz, double qw, Quaterniond dest) Quaterniond.mul
(double f, Quaterniond dest) Quaterniond.mul
(Quaterniondc q, Quaterniond dest) Quaterniondc.mul
(double qx, double qy, double qz, double qw, Quaterniond dest) Multiply this quaternion by the quaternion represented via(qx, qy, qz, qw)
and store the result indest
.Quaterniondc.mul
(double f, Quaterniond dest) Multiply this quaternion by the given scalar and store the result indest
.Quaterniondc.mul
(Quaterniondc q, Quaterniond dest) Multiply this quaternion byq
and store the result indest
.static 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
.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, 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.normalize
(Quaterniond dest) Quaterniondc.normalize
(Quaterniond dest) Normalize this quaternion and store the result indest
.Quaterniond.premul
(double qx, double qy, double qz, double qw, Quaterniond dest) Quaterniond.premul
(Quaterniondc q, Quaterniond dest) Quaterniondc.premul
(double qx, double qy, double qz, double qw, Quaterniond dest) Pre-multiply this quaternion by the quaternion represented via(qx, qy, qz, qw)
and store the result indest
.Quaterniondc.premul
(Quaterniondc q, Quaterniond dest) Pre-multiply this quaternion byq
and store the result indest
.Quaterniond.rotateAxis
(double angle, double axisX, double axisY, double axisZ, Quaterniond dest) Quaterniond.rotateAxis
(double angle, Vector3dc axis, Quaterniond dest) Quaterniondc.rotateAxis
(double angle, double axisX, double axisY, double axisZ, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the specified axis and store the result indest
.Quaterniondc.rotateAxis
(double angle, Vector3dc axis, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the specified axis and store the result indest
.Quaterniond.rotateLocalX
(double angle, Quaterniond dest) Quaterniondc.rotateLocalX
(double angle, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the local x axis and store the result indest
.Quaterniond.rotateLocalY
(double angle, Quaterniond dest) Quaterniondc.rotateLocalY
(double angle, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the local y axis and store the result indest
.Quaterniond.rotateLocalZ
(double angle, Quaterniond dest) Quaterniondc.rotateLocalZ
(double angle, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the local z axis and store the result indest
.Quaterniond.rotateTo
(double fromDirX, double fromDirY, double fromDirZ, double toDirX, double toDirY, double toDirZ, Quaterniond dest) Quaterniond.rotateTo
(Vector3dc fromDir, Vector3dc toDir, Quaterniond dest) Quaterniondc.rotateTo
(double fromDirX, double fromDirY, double fromDirZ, double toDirX, double toDirY, double toDirZ, Quaterniond dest) Apply a rotation tothis
that rotates thefromDir
vector to point alongtoDir
and store the result indest
.Quaterniondc.rotateTo
(Vector3dc fromDir, Vector3dc toDir, Quaterniond dest) Apply a rotation tothis
that rotates thefromDir
vector to point alongtoDir
and store the result indest
.Quaterniond.rotateX
(double angle, Quaterniond dest) Quaterniondc.rotateX
(double angle, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the x axis and store the result indest
.Quaterniond.rotateXYZ
(double angleX, double angleY, double angleZ, Quaterniond dest) Quaterniondc.rotateXYZ
(double angleX, double angleY, double angleZ, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the cartesian base unit axes, called the euler angles using rotation sequenceXYZ
and store the result indest
.Quaterniond.rotateY
(double angle, Quaterniond dest) Quaterniondc.rotateY
(double angle, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the y axis and store the result indest
.Quaterniond.rotateYXZ
(double angleY, double angleX, double angleZ, Quaterniond dest) Quaterniondc.rotateYXZ
(double angleY, double angleX, double angleZ, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the cartesian base unit axes, called the euler angles, using the rotation sequenceYXZ
and store the result indest
.Quaterniond.rotateZ
(double angle, Quaterniond dest) Quaterniondc.rotateZ
(double angle, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the z axis and store the result indest
.Quaterniond.rotateZYX
(double angleZ, double angleY, double angleX, Quaterniond dest) Quaterniondc.rotateZYX
(double angleZ, double angleY, double angleX, Quaterniond dest) Apply a rotation tothis
quaternion rotating the given radians about the cartesian base unit axes, called the euler angles, using the rotation sequenceZYX
and store the result indest
.Vector3d.rotationTo
(double toDirX, double toDirY, double toDirZ, Quaterniond dest) Vector3d.rotationTo
(Vector3dc toDir, Quaterniond dest) Vector3dc.rotationTo
(double toDirX, double toDirY, double toDirZ, Quaterniond dest) Compute the quaternion representing a rotation ofthis
vector to point along(toDirX, toDirY, toDirZ)
and store the result indest
.Vector3dc.rotationTo
(Vector3dc toDir, Quaterniond dest) Compute the quaternion representing a rotation ofthis
vector to point alongtoDir
and store the result indest
.Quaterniond.scale
(double factor, Quaterniond dest) Quaterniondc.scale
(double factor, Quaterniond dest) Apply scaling to this quaternion, which results in any vector transformed by the quaternion to change its length by the givenfactor
, 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
.Quaterniond.slerp
(Quaterniondc target, double alpha, Quaterniond dest) Quaterniondc.slerp
(Quaterniondc target, double alpha, Quaterniond dest)