Package | Description |
---|---|
pythagoras.d |
The Pythagoras geometry utility classes specialized on
double . |
Modifier and Type | Method and Description |
---|---|
Quaternion |
Matrix4.extractRotation() |
Quaternion |
IMatrix4.extractRotation()
Extracts the rotation component of the matrix.
|
Quaternion |
Matrix4.extractRotation(Quaternion result)
Extracts the rotation component of the matrix and places it in the provided result
quaternion.
|
Quaternion |
IMatrix4.extractRotation(Quaternion result)
Extracts the rotation component of the matrix and places it in the provided result
quaternion.
|
Quaternion |
Quaternion.fromAngleAxis(double angle,
double x,
double y,
double z)
Sets this quaternion to the rotation described by the given angle and normalized
axis.
|
Quaternion |
Quaternion.fromAngleAxis(double angle,
IVector3 axis)
Sets this quaternion to the rotation described by the given angle and normalized
axis.
|
Quaternion |
Quaternion.fromAngles(double x,
double y,
double z)
Sets this quaternion to one that first rotates about x by the specified number of radians,
then rotates about y, then about z.
|
Quaternion |
Quaternion.fromAngles(Vector3 angles)
Sets this quaternion to one that first rotates about x by the specified number of radians,
then rotates about y, then about z.
|
Quaternion |
Quaternion.fromAnglesXY(double x,
double y)
Sets this quaternion to one that first rotates about x by the specified number of radians,
then rotates about y by the specified number of radians.
|
Quaternion |
Quaternion.fromAnglesXZ(double x,
double z)
Sets this quaternion to one that first rotates about x by the specified number of radians,
then rotates about z by the specified number of radians.
|
Quaternion |
Quaternion.fromAxes(IVector3 nx,
IVector3 ny,
IVector3 nz)
Sets this quaternion to one that rotates onto the given unit axes.
|
Quaternion |
Quaternion.fromVectorFromNegativeZ(double tx,
double ty,
double tz)
Sets this quaternion to the rotation of (0, 0, -1) onto the supplied normalized vector.
|
Quaternion |
Quaternion.fromVectorFromNegativeZ(IVector3 to)
Sets this quaternion to the rotation of (0, 0, -1) onto the supplied normalized vector.
|
Quaternion |
Quaternion.fromVectors(IVector3 from,
IVector3 to)
Sets this quaternion to the rotation of the first normalized vector onto the second.
|
Quaternion |
Quaternion.integrate(IVector3 velocity,
double t) |
Quaternion |
IQuaternion.integrate(IVector3 velocity,
double t)
Integrates the provided angular velocity over the specified timestep.
|
Quaternion |
Quaternion.integrate(IVector3 velocity,
double t,
Quaternion result) |
Quaternion |
IQuaternion.integrate(IVector3 velocity,
double t,
Quaternion result)
Integrates the provided angular velocity over the specified timestep, storing the result in
the object provided.
|
Quaternion |
Quaternion.integrateLocal(IVector3 velocity,
double t)
Integrates in-place the provided angular velocity over the specified timestep.
|
Quaternion |
Quaternion.invert() |
Quaternion |
IQuaternion.invert()
Inverts this quaternion.
|
Quaternion |
Quaternion.invert(Quaternion result) |
Quaternion |
IQuaternion.invert(Quaternion result)
Inverts this quaternion, storing the result in the object provided.
|
Quaternion |
Quaternion.invertLocal()
Inverts this quaternion in-place.
|
Quaternion |
Quaternion.mult(IQuaternion other) |
Quaternion |
IQuaternion.mult(IQuaternion other)
Multiplies this quaternion by another.
|
Quaternion |
Quaternion.mult(IQuaternion other,
Quaternion result) |
Quaternion |
IQuaternion.mult(IQuaternion other,
Quaternion result)
Multiplies this quaternion by another and stores the result in the provided object.
|
Quaternion |
Quaternion.multLocal(IQuaternion other)
Multiplies this quaternion in-place by another.
|
Quaternion |
Quaternion.normalize() |
Quaternion |
IQuaternion.normalize()
Normalizes this quaternion.
|
Quaternion |
Quaternion.normalize(Quaternion result) |
Quaternion |
IQuaternion.normalize(Quaternion result)
Normalizes this quaternion, storing the result in the object provided.
|
Quaternion |
Quaternion.normalizeLocal()
Normalizes this quaternion in-place.
|
Quaternion |
Quaternion.randomize(Random rand)
Sets this to a random rotation obtained from a completely uniform distribution.
|
Quaternion |
Quaternion.set(double[] values)
Copies the elements of an array.
|
Quaternion |
Quaternion.set(double x,
double y,
double z,
double w)
Sets all of the elements of the quaternion.
|
Quaternion |
Quaternion.set(IQuaternion other)
Copies the elements of another quaternion.
|
Quaternion |
Quaternion.slerp(IQuaternion other,
double t) |
Quaternion |
IQuaternion.slerp(IQuaternion other,
double t)
Interpolates between this and the specified other quaternion.
|
Quaternion |
Quaternion.slerp(IQuaternion other,
double t,
Quaternion result) |
Quaternion |
IQuaternion.slerp(IQuaternion other,
double t,
Quaternion result)
Interpolates between this and the specified other quaternion, placing the result in the
object provided.
|
Quaternion |
Quaternion.slerpLocal(IQuaternion other,
double t)
Interpolates in-place between this and the specified other quaternion.
|
Modifier and Type | Method and Description |
---|---|
Quaternion |
Matrix4.extractRotation(Quaternion result)
Extracts the rotation component of the matrix and places it in the provided result
quaternion.
|
Quaternion |
IMatrix4.extractRotation(Quaternion result)
Extracts the rotation component of the matrix and places it in the provided result
quaternion.
|
Quaternion |
Quaternion.integrate(IVector3 velocity,
double t,
Quaternion result) |
Quaternion |
IQuaternion.integrate(IVector3 velocity,
double t,
Quaternion result)
Integrates the provided angular velocity over the specified timestep, storing the result in
the object provided.
|
Quaternion |
Quaternion.invert(Quaternion result) |
Quaternion |
IQuaternion.invert(Quaternion result)
Inverts this quaternion, storing the result in the object provided.
|
Quaternion |
Quaternion.mult(IQuaternion other,
Quaternion result) |
Quaternion |
IQuaternion.mult(IQuaternion other,
Quaternion result)
Multiplies this quaternion by another and stores the result in the provided object.
|
Quaternion |
Quaternion.normalize(Quaternion result) |
Quaternion |
IQuaternion.normalize(Quaternion result)
Normalizes this quaternion, storing the result in the object provided.
|
Quaternion |
Quaternion.slerp(IQuaternion other,
double t,
Quaternion result) |
Quaternion |
IQuaternion.slerp(IQuaternion other,
double t,
Quaternion result)
Interpolates between this and the specified other quaternion, placing the result in the
object provided.
|
Copyright © 2017. All rights reserved.