Package | Description |
---|---|
pythagoras.f |
The Pythagoras geometry utility classes specialized on
float . |
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(float angle,
float x,
float y,
float z)
Sets this quaternion to the rotation described by the given angle and normalized
axis.
|
Quaternion |
Quaternion.fromAngleAxis(float angle,
IVector3 axis)
Sets this quaternion to the rotation described by the given angle and normalized
axis.
|
Quaternion |
Quaternion.fromAngles(float x,
float y,
float 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(float x,
float 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(float x,
float 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(float tx,
float ty,
float 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,
float t) |
Quaternion |
IQuaternion.integrate(IVector3 velocity,
float t)
Integrates the provided angular velocity over the specified timestep.
|
Quaternion |
Quaternion.integrate(IVector3 velocity,
float t,
Quaternion result) |
Quaternion |
IQuaternion.integrate(IVector3 velocity,
float t,
Quaternion result)
Integrates the provided angular velocity over the specified timestep, storing the result in
the object provided.
|
Quaternion |
Quaternion.integrateLocal(IVector3 velocity,
float 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(float[] values)
Copies the elements of an array.
|
Quaternion |
Quaternion.set(float x,
float y,
float z,
float 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,
float t) |
Quaternion |
IQuaternion.slerp(IQuaternion other,
float t)
Interpolates between this and the specified other quaternion.
|
Quaternion |
Quaternion.slerp(IQuaternion other,
float t,
Quaternion result) |
Quaternion |
IQuaternion.slerp(IQuaternion other,
float t,
Quaternion result)
Interpolates between this and the specified other quaternion, placing the result in the
object provided.
|
Quaternion |
Quaternion.slerpLocal(IQuaternion other,
float 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,
float t,
Quaternion result) |
Quaternion |
IQuaternion.integrate(IVector3 velocity,
float 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,
float t,
Quaternion result) |
Quaternion |
IQuaternion.slerp(IQuaternion other,
float t,
Quaternion result)
Interpolates between this and the specified other quaternion, placing the result in the
object provided.
|
Copyright © 2017. All rights reserved.