| Package | Description |
|---|---|
| com.flowpowered.math | |
| com.flowpowered.math.imaginary | |
| com.flowpowered.math.matrix |
| Modifier and Type | Method and Description |
|---|---|
static Quaterniond |
GenericMath.lerp(Quaterniond a,
Quaterniond b,
double percent)
Interpolates a quaternion between two others using linear interpolation.
|
static Quaterniond |
GenericMath.slerp(Quaterniond a,
Quaterniond b,
double percent)
Interpolates a quaternion between two others using spherical linear interpolation.
|
| Modifier and Type | Method and Description |
|---|---|
static Quaterniond |
GenericMath.lerp(Quaterniond a,
Quaterniond b,
double percent)
Interpolates a quaternion between two others using linear interpolation.
|
static Quaterniond |
GenericMath.slerp(Quaterniond a,
Quaterniond b,
double percent)
Interpolates a quaternion between two others using spherical linear interpolation.
|
| Modifier and Type | Field and Description |
|---|---|
static Quaterniond |
Quaterniond.IDENTITY
An immutable identity (0, 0, 0, 1) quaternion.
|
static Quaterniond |
Quaterniond.ZERO
An immutable identity (0, 0, 0, 0) quaternion.
|
| Modifier and Type | Method and Description |
|---|---|
Quaterniond |
Quaterniond.add(double x,
double y,
double z,
double w)
Adds the double components of another quaternion to this one.
|
Quaterniond |
Quaterniond.add(float x,
float y,
float z,
float w)
Adds the float components of another quaternion to this one.
|
Quaterniond |
Quaterniond.add(Quaterniond q)
Adds another quaternion to this one.
|
Quaterniond |
Quaterniond.clone() |
Quaterniond |
Quaterniond.conjugate()
Conjugates the quaternion.
|
Quaterniond |
Quaterniond.div(double a)
Divides the components of this quaternion by a double scalar.
|
Quaterniond |
Quaterniond.div(double x,
double y,
double z,
double w)
Divides this quaternions by the double components of another one.
|
Quaterniond |
Quaterniond.div(float a)
Divides the components of this quaternion by a float scalar.
|
Quaterniond |
Quaterniond.div(float x,
float y,
float z,
float w)
Divides this quaternions by the float components of another one.
|
Quaterniond |
Quaterniond.div(Quaterniond q)
Divides this quaternions by another one.
|
static Quaterniond |
Quaterniond.from(double x,
double y,
double z,
double w)
Creates a new quaternion from the double components.
|
static Quaterniond |
Quaterniond.fromAngleDegAxis(double angle,
double x,
double y,
double z)
Creates a new quaternion from the rotation double angle in degrees around the axis vector double components.
|
static Quaterniond |
Quaterniond.fromAngleDegAxis(double angle,
Vector3d axis)
Creates a new quaternion from the rotation double angle in degrees around the axis vector.
|
static Quaterniond |
Quaterniond.fromAngleDegAxis(float angle,
float x,
float y,
float z)
Creates a new quaternion from the rotation float angle in degrees around the axis vector float components.
|
static Quaterniond |
Quaterniond.fromAngleDegAxis(float angle,
Vector3d axis)
Creates a new quaternion from the rotation float angle in degrees around the axis vector.
|
static Quaterniond |
Quaterniond.fromAngleRadAxis(double angle,
double x,
double y,
double z)
Creates a new quaternion from the rotation double angle in radians around the axis vector double components.
|
static Quaterniond |
Quaterniond.fromAngleRadAxis(double angle,
Vector3d axis)
Creates a new quaternion from the rotation double angle in radians around the axis vector.
|
static Quaterniond |
Quaterniond.fromAngleRadAxis(float angle,
float x,
float y,
float z)
Creates a new quaternion from the rotation float angle in radians around the axis vector float components.
|
static Quaterniond |
Quaterniond.fromAngleRadAxis(float angle,
Vector3d axis)
Creates a new quaternion from the rotation float angle in radians around the axis vector.
|
static Quaterniond |
Quaterniond.fromAxesAnglesDeg(double pitch,
double yaw,
double roll)
Creates a new quaternion from the double angles in degrees around the x, y and z axes.
|
static Quaterniond |
Quaterniond.fromAxesAnglesDeg(float pitch,
float yaw,
float roll)
Creates a new quaternion from the float angles in degrees around the x, y and z axes.
|
static Quaterniond |
Quaterniond.fromAxesAnglesRad(double pitch,
double yaw,
double roll)
Creates a new quaternion from the double angles in radians around the x, y and z axes.
|
static Quaterniond |
Quaterniond.fromAxesAnglesRad(float pitch,
float yaw,
float roll)
Creates a new quaternion from the float angles in radians around the x, y and z axes.
|
static Quaterniond |
Quaterniond.fromImaginary(double x,
double y,
double z)
Creates a new quaternion from the double imaginary components.
|
static Quaterniond |
Quaterniond.fromReal(double w)
Creates a new quaternion from the double real component.
|
static Quaterniond |
Quaterniond.fromRotationMatrix(Matrix3d matrix)
Creates a new quaternion from the rotation matrix.
|
static Quaterniond |
Quaterniond.fromRotationTo(Vector3d from,
Vector3d to)
Creates a new quaternion from the angle-axis rotation defined from the first to the second vector.
|
Quaterniond |
Quaterniond.invert()
Inverts the quaternion.
|
Quaterniond |
Quaterniond.mul(double a)
Multiplies the components of this quaternion by a double scalar.
|
Quaterniond |
Quaterniond.mul(double x,
double y,
double z,
double w)
Multiplies the double components of another quaternion with this one.
|
Quaterniond |
Quaterniond.mul(float a)
Multiplies the components of this quaternion by a float scalar.
|
Quaterniond |
Quaterniond.mul(float x,
float y,
float z,
float w)
Multiplies the float components of another quaternion with this one.
|
Quaterniond |
Quaterniond.mul(Quaterniond q)
Multiplies another quaternion with this one.
|
Quaterniond |
Quaterniond.normalize()
Normalizes this quaternion.
|
Quaterniond |
Quaterniond.sub(double x,
double y,
double z,
double w)
Subtracts the double components of another quaternion from this one.
|
Quaterniond |
Quaterniond.sub(float x,
float y,
float z,
float w)
Subtracts the float components of another quaternion from this one.
|
Quaterniond |
Quaterniond.sub(Quaterniond q)
Subtracts another quaternion from this one.
|
Quaterniond |
Quaterniond.toDouble() |
Quaterniond |
Quaternionf.toDouble() |
Quaterniond |
Complexd.toQuaternion()
Converts this complex to a quaternion by
using (0, 0, 1) as a rotation axis.
|
Quaterniond |
Complexd.toQuaternion(double x,
double y,
double z)
Converts this complex to a quaternion by
using the provided double components vector
as a rotation axis.
|
Quaterniond |
Complexd.toQuaternion(float x,
float y,
float z)
Converts this complex to a quaternion by
using the provided float components vector
as a rotation axis.
|
Quaterniond |
Complexd.toQuaternion(Vector3d axis)
Converts this complex to a quaternion by
using the provided vector as a rotation axis.
|
| Modifier and Type | Method and Description |
|---|---|
Quaterniond |
Quaterniond.add(Quaterniond q)
Adds another quaternion to this one.
|
int |
Quaterniond.compareTo(Quaterniond q) |
Quaterniond |
Quaterniond.div(Quaterniond q)
Divides this quaternions by another one.
|
double |
Quaterniond.dot(Quaterniond q)
Returns the dot product of this quaternion with another one.
|
Quaterniond |
Quaterniond.mul(Quaterniond q)
Multiplies another quaternion with this one.
|
Quaterniond |
Quaterniond.sub(Quaterniond q)
Subtracts another quaternion from this one.
|
| Constructor and Description |
|---|
Quaterniond(Quaterniond q)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static MatrixNd |
MatrixNd.createRotation(int size,
Quaterniond rot) |
static Matrix4d |
Matrix4d.createRotation(Quaterniond rot) |
static Matrix3d |
Matrix3d.createRotation(Quaterniond rot) |
MatrixNd |
MatrixNd.rotate(Quaterniond rot) |
Matrix4d |
Matrix4d.rotate(Quaterniond rot) |
Matrix3d |
Matrix3d.rotate(Quaterniond rot) |
Copyright © 2013–2016 Flow Powered. All rights reserved.