Quaternionf.add(float x,
float y,
float z,
float w)
Add the quaternion (x, y, z, w)
to this quaternion.
Add q2
to this quaternion.
Quaternionfc.add(float x,
float y,
float z,
float w,
Quaternionf 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
.
Quaternionf.fromAxisAngleDeg(float axisX,
float axisY,
float axisZ,
float 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).
Quaternionf.fromAxisAngleRad(float axisX,
float axisY,
float axisZ,
float 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
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Set this quaternion to the identity.
Quaternionf.integrate(float dt,
float vx,
float vy,
float 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
.
Quaternionf.lookAlong(float dirX,
float dirY,
float dirZ,
float upX,
float upY,
float upZ)
Apply a rotation to this quaternion that maps the given direction to the positive Z axis.
Quaternionf.lookAlong(float dirX,
float dirY,
float dirZ,
float upX,
float upY,
float upZ,
Quaternionf dest)
Apply a rotation to this quaternion that maps the given direction to the positive Z axis.
Quaternionfc.lookAlong(float dirX,
float dirY,
float dirZ,
float upX,
float upY,
float upZ,
Quaternionf 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
.
Multiply this quaternion by the given scalar.
Quaternionf.mul(float qx,
float qy,
float qz,
float qw)
Multiply this quaternion by the quaternion represented via (qx, qy, qz, qw)
.
Quaternionf.mul(float qx,
float qy,
float qz,
float qw,
Quaternionf dest)
Multiply this quaternion by q
.
Quaternionfc.mul(float qx,
float qy,
float qz,
float qw,
Quaternionf 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
.
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
.
Quaternionf.premul(float qx,
float qy,
float qz,
float 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
.
Quaternionf.rotateAxis(float angle,
float axisX,
float axisY,
float 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
.
Quaternionf.rotateTo(float fromDirX,
float fromDirY,
float fromDirZ,
float toDirX,
float toDirY,
float toDirZ)
Apply a rotation to this
that rotates the fromDir
vector to point along toDir
.
Quaternionf.rotateTo(float fromDirX,
float fromDirY,
float fromDirZ,
float toDirX,
float toDirY,
float toDirZ,
Quaternionf dest)
Apply a rotation to this
that rotates the fromDir
vector to point along toDir
.
Quaternionfc.rotateTo(float fromDirX,
float fromDirY,
float fromDirZ,
float toDirX,
float toDirY,
float toDirZ,
Quaternionf 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
.
Quaternionf.rotateXYZ(float angleX,
float angleY,
float 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
.
Quaternionf.rotateYXZ(float angleY,
float angleX,
float 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
.
Quaternionf.rotateZYX(float angleZ,
float angleY,
float 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
.
Quaternionf.rotationAxis(float angle,
float axisX,
float axisY,
float axisZ)
Set this quaternion to a rotation of the given angle in radians about the supplied axis.
Set this quaternion to a rotation of the given angle in radians about the supplied axis.
Set this
Quaternionf
to a rotation of the given angle in radians about the supplied
axis, all of which are specified via the
AxisAngle4f
.
Quaternionf.rotationTo(float fromDirX,
float fromDirY,
float fromDirZ,
float toDirX,
float toDirY,
float 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.
Quaternionf.rotationXYZ(float angleX,
float angleY,
float 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.
Quaternionf.rotationYXZ(float angleY,
float angleX,
float 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.
Quaternionf.rotationZYX(float angleZ,
float angleY,
float angleX)
Set this quaternion from the supplied euler angles (in radians) with rotation order ZYX.
Quaternionf.scale(float 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
.
Quaternionf.set(float x,
float y,
float z,
float w)
Set this quaternion to the given values.
Set this quaternion to a rotation equivalent to the given
AxisAngle4d
.
Set this quaternion to a rotation equivalent to the given
AxisAngle4f
.
Set this quaternion to be a copy of q
.
Set this quaternion to be a copy of q
.
Quaternionf.setAngleAxis(double angle,
double x,
double y,
double z)
Set this quaternion to a rotation equivalent to the supplied axis and
angle (in radians).
Quaternionf.setAngleAxis(float angle,
float x,
float y,
float 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 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
.
Quaternionfc.add(float x,
float y,
float z,
float w,
Quaternionf 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 this
.
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
.
float
Return the dot of this quaternion and otherQuat
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
Get the current values of
this
matrix and store the represented rotation
into the given
Quaternionf
.
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
.
Quaternionf.lookAlong(float dirX,
float dirY,
float dirZ,
float upX,
float upY,
float upZ,
Quaternionf dest)
Quaternionfc.lookAlong(float dirX,
float dirY,
float dirZ,
float upX,
float upY,
float upZ,
Quaternionf 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
.
Quaternionf.mul(float qx,
float qy,
float qz,
float qw,
Quaternionf dest)
Quaternionfc.mul(float qx,
float qy,
float qz,
float qw,
Quaternionf 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
.
Quaternionf.rotateTo(float fromDirX,
float fromDirY,
float fromDirZ,
float toDirX,
float toDirY,
float toDirZ,
Quaternionf dest)
Quaternionfc.rotateTo(float fromDirX,
float fromDirY,
float fromDirZ,
float toDirX,
float toDirY,
float toDirZ,
Quaternionf 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
.