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