Quaterniond.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)
Add q2
to this quaternion.
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 in dest
.
Add q2
to this quaternion and store the result in dest
.
Compute the weighted average of all of the quaternions given in qs
using the specified interpolation factors weights
, and store the result in dest
.
Conjugate this quaternion.
Conjugate this quaternion and store the result in dest
.
Conjugate this
by the given quaternion q
by computing q * this * q^-1
.
Conjugate this
by the given quaternion q
by computing q * this * q^-1
and store the result into dest
.
Conjugate this
by the given quaternion q
by computing q * this * q^-1
and store the result into dest
.
Compute the difference between this
and the other
quaternion
and store the result in this
.
Compute the difference between this
and the other
quaternion
and store the result in dest
.
Divide this
quaternion by b
.
Divide this
quaternion by b
and store the result in dest
.
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).
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).
Set this quaternion to be a representation of the supplied axis and
angle (in radians).
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
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 delta dt
and add the differentiate rotation to the rotation represented by this quaternion.
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 delta dt
and add the differentiate rotation to the rotation represented by this quaternion
and store the result into dest
.
Invert this quaternion and store the
normalized
result in
dest
.
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.
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 in dest
.
Apply a rotation to this quaternion that maps the given direction to the positive Z axis, and store the result in dest
.
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)
Multiply this quaternion by q
.
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 in dest
.
Multiply this quaternion by the given scalar and store the result in dest
.
Multiply this quaternion by q
and store the result in dest
.
Compute a linear (non-spherical) interpolation of this
and the given quaternion q
and store the result in this
.
Compute a linear (non-spherical) interpolation of this
and the given quaternion q
and store the result in 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
.
Compute linear (non-spherical) interpolations of this
and the given quaternion q
iteratively and store the result in this
.
Compute linear (non-spherical) interpolations of this
and the given quaternion q
iteratively and store the result in dest
.
Normalize this quaternion.
Normalize this quaternion and store the result in dest
.
Quaterniond.premul(double qx,
double qy,
double qz,
double qw)
Pre-multiply this quaternion by the quaternion represented via (qx, qy, qz, qw)
.
Pre-multiply this quaternion by q
.
Pre-multiply this quaternion by the quaternion represented via (qx, qy, qz, qw)
and store the result in dest
.
Pre-multiply this quaternion by q
and store the result in dest
.
Quaterniond.rotateAxis(double angle,
double axisX,
double axisY,
double axisZ)
Apply a rotation to this
quaternion rotating the given radians about the specified axis.
Apply a rotation to this
quaternion rotating the given radians about the specified axis.
Apply a rotation to this
quaternion rotating the given radians about the specified axis
and store the result in dest
.
Apply a rotation to this
quaternion rotating the given radians about the specified axis
and store the result in dest
.
Apply a rotation to this
quaternion rotating the given radians about the local x axis.
Apply a rotation to this
quaternion rotating the given radians about the local x axis
and store the result in dest
.
Apply a rotation to this
quaternion rotating the given radians about the local y axis.
Apply a rotation to this
quaternion rotating the given radians about the local y axis
and store the result in dest
.
Apply a rotation to this
quaternion rotating the given radians about the local z axis.
Apply a rotation to this
quaternion rotating the given radians about the local z axis
and store the result in dest
.
Quaterniond.rotateTo(double fromDirX,
double fromDirY,
double fromDirZ,
double toDirX,
double toDirY,
double toDirZ)
Apply a rotation to this
that rotates the fromDir
vector to point along toDir
.
Quaterniond.rotateTo(double fromDirX,
double fromDirY,
double fromDirZ,
double toDirX,
double toDirY,
double toDirZ,
Quaterniond dest)
Apply a rotation to this
that rotates the fromDir
vector to point along toDir
.
Quaterniondc.rotateTo(double fromDirX,
double fromDirY,
double fromDirZ,
double toDirX,
double toDirY,
double toDirZ,
Quaterniond dest)
Apply a rotation to this
that rotates the fromDir
vector to point along toDir
and
store the result in dest
.
Apply a rotation to this
that rotates the fromDir
vector to point along toDir
and
store the result in dest
.
Apply a rotation to this
quaternion rotating the given radians about the x axis.
Apply a rotation to this
quaternion rotating the given radians about the x axis
and store the result in dest
.
Quaterniond.rotateXYZ(double angleX,
double angleY,
double angleZ)
Apply a rotation to this
quaternion rotating the given radians about the cartesian base unit axes,
called the euler angles using rotation sequence XYZ
.
Apply a rotation to this
quaternion rotating the given radians about the cartesian base unit axes,
called the euler angles using rotation sequence XYZ
and store the result in dest
.
Apply a rotation to this
quaternion rotating the given radians about the y axis.
Apply a rotation to this
quaternion rotating the given radians about the y axis
and store the result in dest
.
Quaterniond.rotateYXZ(double angleY,
double angleX,
double angleZ)
Apply a rotation to this
quaternion rotating the given radians about the cartesian base unit axes,
called the euler angles, using the rotation sequence YXZ
.
Apply a rotation to this
quaternion rotating the given radians about the cartesian base unit axes,
called the euler angles, using the rotation sequence YXZ
and store the result in dest
.
Apply a rotation to this
quaternion rotating the given radians about the z axis.
Apply a rotation to this
quaternion rotating the given radians about the z axis
and store the result in dest
.
Quaterniond.rotateZYX(double angleZ,
double angleY,
double angleX)
Apply a rotation to this
quaternion rotating the given radians about the cartesian base unit axes,
called the euler angles, using the rotation sequence ZYX
.
Apply a rotation to this
quaternion rotating the given radians about the cartesian base unit axes,
called the euler angles, using the rotation sequence ZYX
and store the result in dest
.
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.
Set this
Quaterniond
to a rotation of the given angle in radians about the supplied
axis, all of which are specified via the
AxisAngle4f
.
Quaterniond.rotationTo(double fromDirX,
double fromDirY,
double fromDirZ,
double toDirX,
double toDirY,
double toDirZ)
Set this
quaternion to a rotation that rotates the fromDir
vector to point along toDir
.
Set this
quaternion to a rotation that rotates the fromDir
vector to point along toDir
.
Compute the quaternion representing a rotation of this
vector to point along (toDirX, toDirY, toDirZ)
and store the result in dest
.
Compute the quaternion representing a rotation of this
vector to point along toDir
and store the result in dest
.
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.
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.
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 given factor
.
Apply scaling to this quaternion, which results in any vector transformed by the quaternion to change
its length by the given factor
, and store the result in dest
.
Set this quaternion to represent scaling, which results in a transformed vector to change
its length by the given factor
.
Quaterniond.set(double x,
double y,
double z,
double w)
Set this quaternion to the new values.
Set this quaternion to be a copy of 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).
Set this quaternion to be a representation of the supplied axis and
angle (in radians).
Set this quaternion to be a representation of the rotational component of the given matrix.
Set this quaternion to be a representation of the rotational component of the given matrix.
Set this quaternion to be a representation of the rotational component of the given matrix.
Set this quaternion to be a representation of the rotational component of the given matrix.
Set this quaternion to be a representation of the rotational component of the given matrix.
Set this quaternion to be a representation of the rotational component of the given matrix.
Set this quaternion to be a representation of the rotational component of the given matrix.
Set this quaternion to be a representation of the rotational component of the given matrix.
Set this quaternion to be a representation of the rotational component of the given matrix.
Set this quaternion to be a representation of the rotational component of the given matrix.
Set this quaternion to be a representation of the rotational component of the given matrix.
Set this quaternion to be a representation of the rotational component of the given matrix.
Interpolate between
this
unit
quaternion and the specified
target
unit
quaternion using spherical linear interpolation using the specified interpolation factor
alpha
.
Interpolate between
this
unit
quaternion and the specified
target
unit
quaternion using spherical linear interpolation using the specified interpolation factor
alpha
,
and store the result in
dest
.
Quaterniond.add(double x,
double y,
double z,
double w,
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 in dest
.
Add q2
to this quaternion and store the result in dest
.
Compute the weighted average of all of the quaternions given in qs
using the specified interpolation factors weights
, and store the result in dest
.
Conjugate this quaternion and store the result in dest
.
Conjugate this
by the given quaternion q
by computing q * this * q^-1
and store the result into dest
.
Conjugate this
by the given quaternion q
by computing q * this * q^-1
and store the result into dest
.
Compute the difference between this
and the other
quaternion
and store the result in dest
.
Divide this
quaternion by b
and store the result in dest
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaterniond
.
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 delta dt
and add the differentiate rotation to the rotation represented by this quaternion
and store the result into dest
.
Invert this quaternion and store the
normalized
result in
dest
.
Quaterniond.lookAlong(double dirX,
double dirY,
double dirZ,
double upX,
double upY,
double upZ,
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 in dest
.
Apply a rotation to this quaternion that maps the given direction to the positive Z axis, and store the result in dest
.
Quaterniond.mul(double qx,
double qy,
double qz,
double qw,
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 in dest
.
Multiply this quaternion by the given scalar and store the result in dest
.
Multiply this quaternion by q
and store the result in 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
.
Compute a linear (non-spherical) interpolation of this
and the given quaternion q
and store the result in 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
.
Compute linear (non-spherical) interpolations of this
and the given quaternion q
iteratively and store the result in dest
.
Normalize this quaternion and store the result in dest
.
Pre-multiply this quaternion by the quaternion represented via (qx, qy, qz, qw)
and store the result in dest
.
Pre-multiply this quaternion by q
and store the result in dest
.
Apply a rotation to this
quaternion rotating the given radians about the specified axis
and store the result in dest
.
Apply a rotation to this
quaternion rotating the given radians about the specified axis
and store the result in dest
.
Apply a rotation to this
quaternion rotating the given radians about the local x axis
and store the result in dest
.
Apply a rotation to this
quaternion rotating the given radians about the local y axis
and store the result in dest
.
Apply a rotation to this
quaternion rotating the given radians about the local z axis
and store the result in dest
.
Quaterniond.rotateTo(double fromDirX,
double fromDirY,
double fromDirZ,
double toDirX,
double toDirY,
double toDirZ,
Quaterniond dest)
Quaterniondc.rotateTo(double fromDirX,
double fromDirY,
double fromDirZ,
double toDirX,
double toDirY,
double toDirZ,
Quaterniond dest)
Apply a rotation to this
that rotates the fromDir
vector to point along toDir
and
store the result in dest
.
Apply a rotation to this
that rotates the fromDir
vector to point along toDir
and
store the result in dest
.
Apply a rotation to this
quaternion rotating the given radians about the x axis
and store the result in dest
.
Apply a rotation to this
quaternion rotating the given radians about the cartesian base unit axes,
called the euler angles using rotation sequence XYZ
and store the result in dest
.
Apply a rotation to this
quaternion rotating the given radians about the y axis
and store the result in dest
.
Apply a rotation to this
quaternion rotating the given radians about the cartesian base unit axes,
called the euler angles, using the rotation sequence YXZ
and store the result in dest
.
Apply a rotation to this
quaternion rotating the given radians about the z axis
and store the result in dest
.
Apply a rotation to this
quaternion rotating the given radians about the cartesian base unit axes,
called the euler angles, using the rotation sequence ZYX
and store the result in dest
.
Compute the quaternion representing a rotation of this
vector to point along (toDirX, toDirY, toDirZ)
and store the result in dest
.
Compute the quaternion representing a rotation of this
vector to point along toDir
and store the result in dest
.
Apply scaling to this quaternion, which results in any vector transformed by the quaternion to change
its length by the given factor
, and store the result in 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
.
Interpolate between
this
unit
quaternion and the specified
target
unit
quaternion using spherical linear interpolation using the specified interpolation factor
alpha
,
and store the result in
dest
.