Package org.joml
Class Quaternionf
java.lang.Object
org.joml.Quaternionf
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,Quaternionfc
public class Quaternionf extends java.lang.Object implements java.io.Externalizable, Quaternionfc
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Quaternionf()
Quaternionf(float float1, float float2, float float3)
Quaternionf(float float1, float float2, float float3, float float4)
Quaternionf(AxisAngle4f axisAngle4f)
Quaternionf(Quaternionf quaternionf)
-
Method Summary
Modifier and Type Method Description Quaternionf
add(float float1, float float2, float float3, float float4)
Quaternionf
add(float float1, float float2, float float3, float float4, Quaternionf quaternionf)
Quaternionf
add(Quaternionfc quaternionfc)
Quaternionf
add(Quaternionfc quaternionfc, Quaternionf quaternionf)
float
angle()
Quaternionf
conjugate()
Quaternionf
conjugate(Quaternionf quaternionf)
Quaternionf
difference(Quaternionf quaternionf)
Quaternionf
difference(Quaternionf quaternionf, Quaternionf quaternionf2)
Quaternionf
div(Quaternionfc quaternionfc)
Quaternionf
div(Quaternionfc quaternionfc, Quaternionf quaternionf)
float
dot(Quaternionf quaternionf)
boolean
equals(java.lang.Object object)
Quaternionf
fromAxisAngleDeg(float float1, float float2, float float3, float float4)
Quaternionf
fromAxisAngleDeg(Vector3fc vector3fc, float float1)
Quaternionf
fromAxisAngleRad(float float1, float float2, float float3, float float4)
Quaternionf
fromAxisAngleRad(Vector3fc vector3fc, float float1)
AxisAngle4f
get(AxisAngle4f axisAngle4f)
Matrix3d
get(Matrix3d matrix3d)
Matrix3f
get(Matrix3f matrix3f)
Matrix4d
get(Matrix4d matrix4d)
Matrix4f
get(Matrix4f matrix4f)
Matrix4x3d
get(Matrix4x3d matrix4x3d)
Matrix4x3f
get(Matrix4x3f matrix4x3f)
Quaterniond
get(Quaterniond quaterniond)
Quaternionf
get(Quaternionf quaternionf)
java.nio.ByteBuffer
getAsMatrix3f(java.nio.ByteBuffer byteBuffer)
java.nio.FloatBuffer
getAsMatrix3f(java.nio.FloatBuffer floatBuffer)
java.nio.ByteBuffer
getAsMatrix4f(java.nio.ByteBuffer byteBuffer)
java.nio.FloatBuffer
getAsMatrix4f(java.nio.FloatBuffer floatBuffer)
java.nio.ByteBuffer
getAsMatrix4x3f(java.nio.ByteBuffer byteBuffer)
java.nio.FloatBuffer
getAsMatrix4x3f(java.nio.FloatBuffer floatBuffer)
Vector3f
getEulerAnglesXYZ(Vector3f vector3f)
int
hashCode()
Quaternionf
identity()
Quaternionf
integrate(float float1, float float2, float float3, float float4)
Quaternionf
integrate(float float1, float float2, float float3, float float4, Quaternionf quaternionf)
Quaternionf
invert()
Quaternionf
invert(Quaternionf quaternionf)
float
lengthSquared()
Quaternionf
lookAlong(float float1, float float2, float float3, float float4, float float5, float float6)
Quaternionf
lookAlong(float float1, float float2, float float3, float float4, float float5, float float6, Quaternionf quaternionf)
Quaternionf
lookAlong(Vector3fc vector3fc, Vector3fc vector3fc2)
Quaternionf
lookAlong(Vector3fc vector3fc, Vector3fc vector3fc2, Quaternionf quaternionf)
Quaternionf
mul(float float1, float float2, float float3, float float4)
Quaternionf
mul(float float1, float float2, float float3, float float4, Quaternionf quaternionf)
Quaternionf
mul(Quaternionfc quaternionfc)
Quaternionf
mul(Quaternionfc quaternionfc, Quaternionf quaternionf)
static Quaternionfc
nlerp(Quaternionfc[] quaternionfcArray, float[] floatArray, Quaternionf quaternionf)
Quaternionf
nlerp(Quaternionfc quaternionfc, float float1)
Quaternionf
nlerp(Quaternionfc quaternionfc, float float1, Quaternionf quaternionf)
static Quaternionfc
nlerpIterative(Quaternionf[] quaternionfArray, float[] floatArray, float float1, Quaternionf quaternionf)
Quaternionf
nlerpIterative(Quaternionfc quaternionfc, float float1, float float2)
Quaternionf
nlerpIterative(Quaternionfc quaternionfc, float float1, float float2, Quaternionf quaternionf)
Quaternionf
normalize()
Quaternionf
normalize(Quaternionf quaternionf)
Vector3f
normalizedPositiveX(Vector3f vector3f)
Vector3f
normalizedPositiveY(Vector3f vector3f)
Vector3f
normalizedPositiveZ(Vector3f vector3f)
Vector3f
positiveX(Vector3f vector3f)
Vector3f
positiveY(Vector3f vector3f)
Vector3f
positiveZ(Vector3f vector3f)
Quaternionf
premul(float float1, float float2, float float3, float float4)
Quaternionf
premul(float float1, float float2, float float3, float float4, Quaternionf quaternionf)
Quaternionf
premul(Quaternionfc quaternionfc)
Quaternionf
premul(Quaternionfc quaternionfc, Quaternionf quaternionf)
void
readExternal(java.io.ObjectInput objectInput)
Quaternionf
rotate(float float1, float float2, float float3)
Quaternionf
rotate(float float1, float float2, float float3, Quaternionf quaternionf)
Quaternionf
rotateAxis(float float1, float float2, float float3, float float4)
Quaternionf
rotateAxis(float float1, float float2, float float3, float float4, Quaternionf quaternionf)
Quaternionf
rotateAxis(float float1, Vector3fc vector3fc)
Quaternionf
rotateAxis(float float1, Vector3fc vector3fc, Quaternionf quaternionf)
Quaternionf
rotateLocal(float float1, float float2, float float3)
Quaternionf
rotateLocal(float float1, float float2, float float3, Quaternionf quaternionf)
Quaternionf
rotateLocalX(float float1)
Quaternionf
rotateLocalX(float float1, Quaternionf quaternionf)
Quaternionf
rotateLocalY(float float1)
Quaternionf
rotateLocalY(float float1, Quaternionf quaternionf)
Quaternionf
rotateLocalZ(float float1)
Quaternionf
rotateLocalZ(float float1, Quaternionf quaternionf)
Quaternionf
rotateTo(float float1, float float2, float float3, float float4, float float5, float float6)
Quaternionf
rotateTo(float float1, float float2, float float3, float float4, float float5, float float6, Quaternionf quaternionf)
Quaternionf
rotateTo(Vector3fc vector3fc, Vector3fc vector3fc2)
Quaternionf
rotateTo(Vector3fc vector3fc, Vector3fc vector3fc2, Quaternionf quaternionf)
Quaternionf
rotateX(float float1)
Quaternionf
rotateX(float float1, Quaternionf quaternionf)
Quaternionf
rotateXYZ(float float1, float float2, float float3)
Quaternionf
rotateXYZ(float float1, float float2, float float3, Quaternionf quaternionf)
Quaternionf
rotateY(float float1)
Quaternionf
rotateY(float float1, Quaternionf quaternionf)
Quaternionf
rotateYXZ(float float1, float float2, float float3)
Quaternionf
rotateYXZ(float float1, float float2, float float3, Quaternionf quaternionf)
Quaternionf
rotateZ(float float1)
Quaternionf
rotateZ(float float1, Quaternionf quaternionf)
Quaternionf
rotateZYX(float float1, float float2, float float3)
Quaternionf
rotateZYX(float float1, float float2, float float3, Quaternionf quaternionf)
Quaternionf
rotation(float float1, float float2, float float3)
Quaternionf
rotationAxis(float float1, float float2, float float3, float float4)
Quaternionf
rotationAxis(float float1, Vector3fc vector3fc)
Quaternionf
rotationAxis(AxisAngle4f axisAngle4f)
Quaternionf
rotationTo(float float1, float float2, float float3, float float4, float float5, float float6)
Quaternionf
rotationTo(Vector3fc vector3fc, Vector3fc vector3fc2)
Quaternionf
rotationX(float float1)
Quaternionf
rotationXYZ(float float1, float float2, float float3)
Quaternionf
rotationY(float float1)
Quaternionf
rotationYXZ(float float1, float float2, float float3)
Quaternionf
rotationZ(float float1)
Quaternionf
rotationZYX(float float1, float float2, float float3)
Quaternionf
scale(float float1)
Quaternionf
scale(float float1, Quaternionf quaternionf)
Quaternionf
scaling(float float1)
Quaternionf
set(float float1, float float2, float float3)
Quaternionf
set(float float1, float float2, float float3, float float4)
Quaternionf
set(AxisAngle4d axisAngle4d)
Quaternionf
set(AxisAngle4f axisAngle4f)
Quaternionf
set(Quaternionfc quaternionfc)
Quaternionf
setAngleAxis(double double1, double double2, double double3, double double4)
Quaternionf
setAngleAxis(float float1, float float2, float float3, float float4)
Quaternionf
setFromNormalized(Matrix3dc matrix3dc)
Quaternionf
setFromNormalized(Matrix3fc matrix3fc)
Quaternionf
setFromNormalized(Matrix4dc matrix4dc)
Quaternionf
setFromNormalized(Matrix4fc matrix4fc)
Quaternionf
setFromNormalized(Matrix4x3dc matrix4x3dc)
Quaternionf
setFromNormalized(Matrix4x3fc matrix4x3fc)
Quaternionf
setFromUnnormalized(Matrix3dc matrix3dc)
Quaternionf
setFromUnnormalized(Matrix3fc matrix3fc)
Quaternionf
setFromUnnormalized(Matrix4dc matrix4dc)
Quaternionf
setFromUnnormalized(Matrix4fc matrix4fc)
Quaternionf
setFromUnnormalized(Matrix4x3dc matrix4x3dc)
Quaternionf
setFromUnnormalized(Matrix4x3fc matrix4x3fc)
static Quaternionfc
slerp(Quaternionf[] quaternionfArray, float[] floatArray, Quaternionf quaternionf)
Quaternionf
slerp(Quaternionfc quaternionfc, float float1)
Quaternionf
slerp(Quaternionfc quaternionfc, float float1, Quaternionf quaternionf)
Quaternionfc
toImmutable()
java.lang.String
toString()
java.lang.String
toString(java.text.NumberFormat numberFormat)
Vector3f
transform(float float1, float float2, float float3, Vector3f vector3f)
Vector4f
transform(float float1, float float2, float float3, Vector4f vector4f)
Vector3f
transform(Vector3f vector3f)
Vector3f
transform(Vector3fc vector3fc, Vector3f vector3f)
Vector4f
transform(Vector4f vector4f)
Vector4f
transform(Vector4fc vector4fc, Vector4f vector4f)
float
w()
void
writeExternal(java.io.ObjectOutput objectOutput)
float
x()
float
y()
float
z()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
x
public float x -
y
public float y -
z
public float z -
w
public float w
-
-
Constructor Details
-
Quaternionf
public Quaternionf() -
Quaternionf
public Quaternionf(float float1, float float2, float float3, float float4) -
Quaternionf
public Quaternionf(float float1, float float2, float float3) -
Quaternionf
-
Quaternionf
-
-
Method Details
-
x
public float x()- Specified by:
x
in interfaceQuaternionfc
-
y
public float y()- Specified by:
y
in interfaceQuaternionfc
-
z
public float z()- Specified by:
z
in interfaceQuaternionfc
-
w
public float w()- Specified by:
w
in interfaceQuaternionfc
-
normalize
-
normalize
- Specified by:
normalize
in interfaceQuaternionfc
-
add
-
add
public Quaternionf add(float float1, float float2, float float3, float float4, Quaternionf quaternionf)- Specified by:
add
in interfaceQuaternionfc
-
add
-
add
- Specified by:
add
in interfaceQuaternionfc
-
dot
-
angle
public float angle()- Specified by:
angle
in interfaceQuaternionfc
-
get
- Specified by:
get
in interfaceQuaternionfc
-
get
- Specified by:
get
in interfaceQuaternionfc
-
get
- Specified by:
get
in interfaceQuaternionfc
-
get
- Specified by:
get
in interfaceQuaternionfc
-
get
- Specified by:
get
in interfaceQuaternionfc
-
get
- Specified by:
get
in interfaceQuaternionfc
-
get
- Specified by:
get
in interfaceQuaternionfc
-
get
- Specified by:
get
in interfaceQuaternionfc
-
get
- Specified by:
get
in interfaceQuaternionfc
-
getAsMatrix3f
public java.nio.ByteBuffer getAsMatrix3f(java.nio.ByteBuffer byteBuffer)- Specified by:
getAsMatrix3f
in interfaceQuaternionfc
-
getAsMatrix3f
public java.nio.FloatBuffer getAsMatrix3f(java.nio.FloatBuffer floatBuffer)- Specified by:
getAsMatrix3f
in interfaceQuaternionfc
-
getAsMatrix4f
public java.nio.ByteBuffer getAsMatrix4f(java.nio.ByteBuffer byteBuffer)- Specified by:
getAsMatrix4f
in interfaceQuaternionfc
-
getAsMatrix4f
public java.nio.FloatBuffer getAsMatrix4f(java.nio.FloatBuffer floatBuffer)- Specified by:
getAsMatrix4f
in interfaceQuaternionfc
-
getAsMatrix4x3f
public java.nio.ByteBuffer getAsMatrix4x3f(java.nio.ByteBuffer byteBuffer)- Specified by:
getAsMatrix4x3f
in interfaceQuaternionfc
-
getAsMatrix4x3f
public java.nio.FloatBuffer getAsMatrix4x3f(java.nio.FloatBuffer floatBuffer)- Specified by:
getAsMatrix4x3f
in interfaceQuaternionfc
-
set
-
set
-
set
-
set
-
set
-
setAngleAxis
-
setAngleAxis
-
rotationAxis
-
rotationAxis
-
rotationAxis
-
rotation
-
rotationX
-
rotationY
-
rotationZ
-
setFromUnnormalized
-
setFromUnnormalized
-
setFromUnnormalized
-
setFromNormalized
-
setFromNormalized
-
setFromNormalized
-
setFromUnnormalized
-
setFromNormalized
-
setFromUnnormalized
-
setFromNormalized
-
setFromUnnormalized
-
setFromNormalized
-
fromAxisAngleRad
-
fromAxisAngleRad
-
fromAxisAngleDeg
-
fromAxisAngleDeg
-
mul
-
mul
- Specified by:
mul
in interfaceQuaternionfc
-
mul
-
mul
public Quaternionf mul(float float1, float float2, float float3, float float4, Quaternionf quaternionf)- Specified by:
mul
in interfaceQuaternionfc
-
premul
-
premul
- Specified by:
premul
in interfaceQuaternionfc
-
premul
-
premul
public Quaternionf premul(float float1, float float2, float float3, float float4, Quaternionf quaternionf)- Specified by:
premul
in interfaceQuaternionfc
-
transform
- Specified by:
transform
in interfaceQuaternionfc
-
transform
- Specified by:
transform
in interfaceQuaternionfc
-
transform
- Specified by:
transform
in interfaceQuaternionfc
-
transform
- Specified by:
transform
in interfaceQuaternionfc
-
transform
- Specified by:
transform
in interfaceQuaternionfc
-
transform
- Specified by:
transform
in interfaceQuaternionfc
-
invert
- Specified by:
invert
in interfaceQuaternionfc
-
invert
-
div
- Specified by:
div
in interfaceQuaternionfc
-
div
-
conjugate
-
conjugate
- Specified by:
conjugate
in interfaceQuaternionfc
-
identity
-
rotateXYZ
-
rotateXYZ
- Specified by:
rotateXYZ
in interfaceQuaternionfc
-
rotateZYX
-
rotateZYX
- Specified by:
rotateZYX
in interfaceQuaternionfc
-
rotateYXZ
-
rotateYXZ
- Specified by:
rotateYXZ
in interfaceQuaternionfc
-
getEulerAnglesXYZ
- Specified by:
getEulerAnglesXYZ
in interfaceQuaternionfc
-
lengthSquared
public float lengthSquared()- Specified by:
lengthSquared
in interfaceQuaternionfc
-
rotationXYZ
-
rotationZYX
-
rotationYXZ
-
slerp
-
slerp
- Specified by:
slerp
in interfaceQuaternionfc
-
slerp
public static Quaternionfc slerp(Quaternionf[] quaternionfArray, float[] floatArray, Quaternionf quaternionf) -
scale
-
scale
- Specified by:
scale
in interfaceQuaternionfc
-
scaling
-
integrate
-
integrate
public Quaternionf integrate(float float1, float float2, float float3, float float4, Quaternionf quaternionf)- Specified by:
integrate
in interfaceQuaternionfc
-
nlerp
-
nlerp
- Specified by:
nlerp
in interfaceQuaternionfc
-
nlerp
public static Quaternionfc nlerp(Quaternionfc[] quaternionfcArray, float[] floatArray, Quaternionf quaternionf) -
nlerpIterative
public Quaternionf nlerpIterative(Quaternionfc quaternionfc, float float1, float float2, Quaternionf quaternionf)- Specified by:
nlerpIterative
in interfaceQuaternionfc
-
nlerpIterative
-
nlerpIterative
public static Quaternionfc nlerpIterative(Quaternionf[] quaternionfArray, float[] floatArray, float float1, Quaternionf quaternionf) -
lookAlong
-
lookAlong
- Specified by:
lookAlong
in interfaceQuaternionfc
-
lookAlong
public Quaternionf lookAlong(float float1, float float2, float float3, float float4, float float5, float float6) -
lookAlong
public Quaternionf lookAlong(float float1, float float2, float float3, float float4, float float5, float float6, Quaternionf quaternionf)- Specified by:
lookAlong
in interfaceQuaternionfc
-
rotationTo
public Quaternionf rotationTo(float float1, float float2, float float3, float float4, float float5, float float6) -
rotationTo
-
rotateTo
public Quaternionf rotateTo(float float1, float float2, float float3, float float4, float float5, float float6, Quaternionf quaternionf)- Specified by:
rotateTo
in interfaceQuaternionfc
-
rotateTo
public Quaternionf rotateTo(float float1, float float2, float float3, float float4, float float5, float float6) -
rotateTo
- Specified by:
rotateTo
in interfaceQuaternionfc
-
rotateTo
-
rotate
-
rotate
- Specified by:
rotate
in interfaceQuaternionfc
-
rotateLocal
-
rotateLocal
- Specified by:
rotateLocal
in interfaceQuaternionfc
-
rotateX
-
rotateX
- Specified by:
rotateX
in interfaceQuaternionfc
-
rotateY
-
rotateY
- Specified by:
rotateY
in interfaceQuaternionfc
-
rotateZ
-
rotateZ
- Specified by:
rotateZ
in interfaceQuaternionfc
-
rotateLocalX
-
rotateLocalX
- Specified by:
rotateLocalX
in interfaceQuaternionfc
-
rotateLocalY
-
rotateLocalY
- Specified by:
rotateLocalY
in interfaceQuaternionfc
-
rotateLocalZ
-
rotateLocalZ
- Specified by:
rotateLocalZ
in interfaceQuaternionfc
-
rotateAxis
public Quaternionf rotateAxis(float float1, float float2, float float3, float float4, Quaternionf quaternionf)- Specified by:
rotateAxis
in interfaceQuaternionfc
-
rotateAxis
- Specified by:
rotateAxis
in interfaceQuaternionfc
-
rotateAxis
-
rotateAxis
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(java.text.NumberFormat numberFormat) -
writeExternal
public void writeExternal(java.io.ObjectOutput objectOutput) throws java.io.IOException- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput objectInput) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)- Overrides:
equals
in classjava.lang.Object
-
difference
-
difference
- Specified by:
difference
in interfaceQuaternionfc
-
positiveX
- Specified by:
positiveX
in interfaceQuaternionfc
-
normalizedPositiveX
- Specified by:
normalizedPositiveX
in interfaceQuaternionfc
-
positiveY
- Specified by:
positiveY
in interfaceQuaternionfc
-
normalizedPositiveY
- Specified by:
normalizedPositiveY
in interfaceQuaternionfc
-
positiveZ
- Specified by:
positiveZ
in interfaceQuaternionfc
-
normalizedPositiveZ
- Specified by:
normalizedPositiveZ
in interfaceQuaternionfc
-
toImmutable
-