Package org.joml
Class Quaterniond
java.lang.Object
org.joml.Quaterniond
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,Quaterniondc
public class Quaterniond extends java.lang.Object implements java.io.Externalizable, Quaterniondc
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Quaterniond()
Quaterniond(double double1, double double2, double double3)
Quaterniond(double double1, double double2, double double3, double double4)
Quaterniond(AxisAngle4d axisAngle4d)
Quaterniond(AxisAngle4f axisAngle4f)
Quaterniond(Quaterniondc quaterniondc)
Quaterniond(Quaternionfc quaternionfc)
-
Method Summary
Modifier and Type Method Description Quaterniond
add(double double1, double double2, double double3, double double4)
Quaterniond
add(double double1, double double2, double double3, double double4, Quaterniond quaterniond)
Quaterniond
add(Quaterniondc quaterniondc)
Quaterniond
add(Quaterniondc quaterniondc, Quaterniond quaterniond)
double
angle()
Quaterniond
conjugate()
Quaterniond
conjugate(Quaterniond quaterniond)
Quaterniond
difference(Quaterniondc quaterniondc)
Quaterniond
difference(Quaterniondc quaterniondc, Quaterniond quaterniond)
Quaterniond
div(Quaterniondc quaterniondc)
Quaterniond
div(Quaterniondc quaterniondc, Quaterniond quaterniond)
double
dot(Quaterniondc quaterniondc)
boolean
equals(java.lang.Object object)
Quaterniond
fromAxisAngleDeg(double double1, double double2, double double3, double double4)
Quaterniond
fromAxisAngleDeg(Vector3dc vector3dc, double double1)
Quaterniond
fromAxisAngleRad(double double1, double double2, double double3, double double4)
Quaterniond
fromAxisAngleRad(Vector3dc vector3dc, double double1)
Matrix3d
get(Matrix3d matrix3d)
Matrix3f
get(Matrix3f matrix3f)
Matrix4d
get(Matrix4d matrix4d)
Matrix4f
get(Matrix4f matrix4f)
Quaterniond
get(Quaterniond quaterniond)
Vector3d
getEulerAnglesXYZ(Vector3d vector3d)
int
hashCode()
Quaterniond
identity()
Quaterniond
integrate(double double1, double double2, double double3, double double4)
Quaterniond
integrate(double double1, double double2, double double3, double double4, Quaterniond quaterniond)
Quaterniond
invert()
Quaterniond
invert(Quaterniond quaterniond)
double
lengthSquared()
Quaterniond
lookAlong(double double1, double double2, double double3, double double4, double double5, double double6)
Quaterniond
lookAlong(double double1, double double2, double double3, double double4, double double5, double double6, Quaterniond quaterniond)
Quaterniond
lookAlong(Vector3dc vector3dc, Vector3dc vector3dc2)
Quaterniond
lookAlong(Vector3dc vector3dc, Vector3dc vector3dc2, Quaterniond quaterniond)
Quaterniond
mul(double double1, double double2, double double3, double double4)
Quaterniond
mul(double double1, double double2, double double3, double double4, Quaterniond quaterniond)
Quaterniond
mul(Quaterniondc quaterniondc)
Quaterniond
mul(Quaterniondc quaterniondc, Quaterniond quaterniond)
static Quaterniondc
nlerp(Quaterniond[] quaterniondArray, double[] doubleArray, Quaterniond quaterniond)
Quaterniond
nlerp(Quaterniondc quaterniondc, double double1)
Quaterniond
nlerp(Quaterniondc quaterniondc, double double1, Quaterniond quaterniond)
static Quaterniond
nlerpIterative(Quaterniondc[] quaterniondcArray, double[] doubleArray, double double1, Quaterniond quaterniond)
Quaterniond
nlerpIterative(Quaterniondc quaterniondc, double double1, double double2)
Quaterniond
nlerpIterative(Quaterniondc quaterniondc, double double1, double double2, Quaterniond quaterniond)
Quaterniond
normalize()
Quaterniond
normalize(Quaterniond quaterniond)
Vector3d
normalizedPositiveX(Vector3d vector3d)
Vector3d
normalizedPositiveY(Vector3d vector3d)
Vector3d
normalizedPositiveZ(Vector3d vector3d)
Vector3d
positiveX(Vector3d vector3d)
Vector3d
positiveY(Vector3d vector3d)
Vector3d
positiveZ(Vector3d vector3d)
Quaterniond
premul(double double1, double double2, double double3, double double4)
Quaterniond
premul(double double1, double double2, double double3, double double4, Quaterniond quaterniond)
Quaterniond
premul(Quaterniondc quaterniondc)
Quaterniond
premul(Quaterniondc quaterniondc, Quaterniond quaterniond)
void
readExternal(java.io.ObjectInput objectInput)
Quaterniond
rotate(double double1, double double2, double double3)
Quaterniond
rotate(double double1, double double2, double double3, Quaterniond quaterniond)
Quaterniond
rotate(Vector3dc vector3dc)
Quaterniond
rotate(Vector3dc vector3dc, Quaterniond quaterniond)
Quaterniond
rotateAxis(double double1, double double2, double double3, double double4)
Quaterniond
rotateAxis(double double1, double double2, double double3, double double4, Quaterniond quaterniond)
Quaterniond
rotateAxis(double double1, Vector3dc vector3dc)
Quaterniond
rotateAxis(double double1, Vector3dc vector3dc, Quaterniond quaterniond)
Quaterniond
rotateLocal(double double1, double double2, double double3)
Quaterniond
rotateLocal(double double1, double double2, double double3, Quaterniond quaterniond)
Quaterniond
rotateLocalX(double double1)
Quaterniond
rotateLocalX(double double1, Quaterniond quaterniond)
Quaterniond
rotateLocalY(double double1)
Quaterniond
rotateLocalY(double double1, Quaterniond quaterniond)
Quaterniond
rotateLocalZ(double double1)
Quaterniond
rotateLocalZ(double double1, Quaterniond quaterniond)
Quaterniond
rotateTo(double double1, double double2, double double3, double double4, double double5, double double6)
Quaterniond
rotateTo(double double1, double double2, double double3, double double4, double double5, double double6, Quaterniond quaterniond)
Quaterniond
rotateTo(Vector3dc vector3dc, Vector3dc vector3dc2)
Quaterniond
rotateTo(Vector3dc vector3dc, Vector3dc vector3dc2, Quaterniond quaterniond)
Quaterniond
rotateX(double double1)
Quaterniond
rotateX(double double1, Quaterniond quaterniond)
Quaterniond
rotateXYZ(double double1, double double2, double double3)
Quaterniond
rotateXYZ(double double1, double double2, double double3, Quaterniond quaterniond)
Quaterniond
rotateY(double double1)
Quaterniond
rotateY(double double1, Quaterniond quaterniond)
Quaterniond
rotateYXZ(double double1, double double2, double double3)
Quaterniond
rotateYXZ(double double1, double double2, double double3, Quaterniond quaterniond)
Quaterniond
rotateZ(double double1)
Quaterniond
rotateZ(double double1, Quaterniond quaterniond)
Quaterniond
rotateZYX(double double1, double double2, double double3)
Quaterniond
rotateZYX(double double1, double double2, double double3, Quaterniond quaterniond)
Quaterniond
rotation(double double1, double double2, double double3)
Quaterniond
rotationAxis(double double1, double double2, double double3, double double4)
Quaterniond
rotationAxis(AxisAngle4f axisAngle4f)
Quaterniond
rotationTo(double double1, double double2, double double3, double double4, double double5, double double6)
Quaterniond
rotationTo(Vector3dc vector3dc, Vector3dc vector3dc2)
Quaterniond
rotationX(double double1)
Quaterniond
rotationXYZ(double double1, double double2, double double3)
Quaterniond
rotationY(double double1)
Quaterniond
rotationYXZ(double double1, double double2, double double3)
Quaterniond
rotationZ(double double1)
Quaterniond
rotationZYX(double double1, double double2, double double3)
Quaterniond
scale(double double1)
Quaterniond
scale(double double1, Quaterniond quaterniond)
Quaterniond
scaling(float float1)
Quaterniond
set(double double1, double double2, double double3)
Quaterniond
set(double double1, double double2, double double3, double double4)
Quaterniond
set(AxisAngle4d axisAngle4d)
Quaterniond
set(AxisAngle4f axisAngle4f)
Quaterniond
set(Quaterniondc quaterniondc)
Quaterniond
set(Quaternionfc quaternionfc)
Quaterniond
setAngleAxis(double double1, double double2, double double3, double double4)
Quaterniond
setAngleAxis(double double1, Vector3dc vector3dc)
Quaterniond
setFromNormalized(Matrix3dc matrix3dc)
Quaterniond
setFromNormalized(Matrix3fc matrix3fc)
Quaterniond
setFromNormalized(Matrix4dc matrix4dc)
Quaterniond
setFromNormalized(Matrix4fc matrix4fc)
Quaterniond
setFromNormalized(Matrix4x3dc matrix4x3dc)
Quaterniond
setFromNormalized(Matrix4x3fc matrix4x3fc)
Quaterniond
setFromUnnormalized(Matrix3dc matrix3dc)
Quaterniond
setFromUnnormalized(Matrix3fc matrix3fc)
Quaterniond
setFromUnnormalized(Matrix4dc matrix4dc)
Quaterniond
setFromUnnormalized(Matrix4fc matrix4fc)
Quaterniond
setFromUnnormalized(Matrix4x3dc matrix4x3dc)
Quaterniond
setFromUnnormalized(Matrix4x3fc matrix4x3fc)
static Quaterniondc
slerp(Quaterniond[] quaterniondArray, double[] doubleArray, Quaterniond quaterniond)
Quaterniond
slerp(Quaterniondc quaterniondc, double double1)
Quaterniond
slerp(Quaterniondc quaterniondc, double double1, Quaterniond quaterniond)
Quaterniondc
toImmutable()
java.lang.String
toString()
java.lang.String
toString(java.text.NumberFormat numberFormat)
Vector3d
transform(double double1, double double2, double double3, Vector3d vector3d)
Vector4d
transform(double double1, double double2, double double3, Vector4d vector4d)
Vector3d
transform(Vector3d vector3d)
Vector3d
transform(Vector3dc vector3dc, Vector3d vector3d)
Vector4d
transform(Vector4d vector4d)
Vector4d
transform(Vector4dc vector4dc, Vector4d vector4d)
double
w()
void
writeExternal(java.io.ObjectOutput objectOutput)
double
x()
double
y()
double
z()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
x
public double x -
y
public double y -
z
public double z -
w
public double w
-
-
Constructor Details
-
Quaterniond
public Quaterniond() -
Quaterniond
public Quaterniond(double double1, double double2, double double3, double double4) -
Quaterniond
public Quaterniond(double double1, double double2, double double3) -
Quaterniond
-
Quaterniond
-
Quaterniond
-
Quaterniond
-
-
Method Details
-
x
public double x()- Specified by:
x
in interfaceQuaterniondc
-
y
public double y()- Specified by:
y
in interfaceQuaterniondc
-
z
public double z()- Specified by:
z
in interfaceQuaterniondc
-
w
public double w()- Specified by:
w
in interfaceQuaterniondc
-
normalize
-
normalize
- Specified by:
normalize
in interfaceQuaterniondc
-
add
-
add
public Quaterniond add(double double1, double double2, double double3, double double4, Quaterniond quaterniond)- Specified by:
add
in interfaceQuaterniondc
-
add
-
add
- Specified by:
add
in interfaceQuaterniondc
-
dot
- Specified by:
dot
in interfaceQuaterniondc
-
angle
public double angle()- Specified by:
angle
in interfaceQuaterniondc
-
get
- Specified by:
get
in interfaceQuaterniondc
-
get
- Specified by:
get
in interfaceQuaterniondc
-
get
- Specified by:
get
in interfaceQuaterniondc
-
get
- Specified by:
get
in interfaceQuaterniondc
-
get
- Specified by:
get
in interfaceQuaterniondc
-
set
-
set
-
set
-
set
-
set
-
set
-
setAngleAxis
-
setAngleAxis
-
setFromUnnormalized
-
setFromUnnormalized
-
setFromUnnormalized
-
setFromNormalized
-
setFromNormalized
-
setFromNormalized
-
setFromUnnormalized
-
setFromNormalized
-
setFromUnnormalized
-
setFromNormalized
-
setFromUnnormalized
-
setFromNormalized
-
fromAxisAngleRad
-
fromAxisAngleRad
public Quaterniond fromAxisAngleRad(double double1, double double2, double double3, double double4) -
fromAxisAngleDeg
-
fromAxisAngleDeg
public Quaterniond fromAxisAngleDeg(double double1, double double2, double double3, double double4) -
mul
-
mul
- Specified by:
mul
in interfaceQuaterniondc
-
mul
-
mul
public Quaterniond mul(double double1, double double2, double double3, double double4, Quaterniond quaterniond)- Specified by:
mul
in interfaceQuaterniondc
-
premul
-
premul
- Specified by:
premul
in interfaceQuaterniondc
-
premul
-
premul
public Quaterniond premul(double double1, double double2, double double3, double double4, Quaterniond quaterniond)- Specified by:
premul
in interfaceQuaterniondc
-
transform
- Specified by:
transform
in interfaceQuaterniondc
-
transform
- Specified by:
transform
in interfaceQuaterniondc
-
transform
- Specified by:
transform
in interfaceQuaterniondc
-
transform
- Specified by:
transform
in interfaceQuaterniondc
-
transform
- Specified by:
transform
in interfaceQuaterniondc
-
transform
- Specified by:
transform
in interfaceQuaterniondc
-
invert
- Specified by:
invert
in interfaceQuaterniondc
-
invert
-
div
- Specified by:
div
in interfaceQuaterniondc
-
div
-
conjugate
-
conjugate
- Specified by:
conjugate
in interfaceQuaterniondc
-
identity
-
lengthSquared
public double lengthSquared()- Specified by:
lengthSquared
in interfaceQuaterniondc
-
rotationXYZ
-
rotationZYX
-
rotationYXZ
-
slerp
-
slerp
- Specified by:
slerp
in interfaceQuaterniondc
-
slerp
public static Quaterniondc slerp(Quaterniond[] quaterniondArray, double[] doubleArray, Quaterniond quaterniond) -
scale
-
scale
- Specified by:
scale
in interfaceQuaterniondc
-
scaling
-
integrate
-
integrate
public Quaterniond integrate(double double1, double double2, double double3, double double4, Quaterniond quaterniond)- Specified by:
integrate
in interfaceQuaterniondc
-
nlerp
-
nlerp
- Specified by:
nlerp
in interfaceQuaterniondc
-
nlerp
public static Quaterniondc nlerp(Quaterniond[] quaterniondArray, double[] doubleArray, Quaterniond quaterniond) -
nlerpIterative
public Quaterniond nlerpIterative(Quaterniondc quaterniondc, double double1, double double2, Quaterniond quaterniond)- Specified by:
nlerpIterative
in interfaceQuaterniondc
-
nlerpIterative
-
nlerpIterative
public static Quaterniond nlerpIterative(Quaterniondc[] quaterniondcArray, double[] doubleArray, double double1, Quaterniond quaterniond) -
lookAlong
-
lookAlong
- Specified by:
lookAlong
in interfaceQuaterniondc
-
lookAlong
public Quaterniond lookAlong(double double1, double double2, double double3, double double4, double double5, double double6) -
lookAlong
public Quaterniond lookAlong(double double1, double double2, double double3, double double4, double double5, double double6, Quaterniond quaterniond)- Specified by:
lookAlong
in interfaceQuaterniondc
-
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 interfaceQuaterniondc
-
rotationTo
public Quaterniond rotationTo(double double1, double double2, double double3, double double4, double double5, double double6) -
rotationTo
-
rotateTo
public Quaterniond rotateTo(double double1, double double2, double double3, double double4, double double5, double double6, Quaterniond quaterniond)- Specified by:
rotateTo
in interfaceQuaterniondc
-
rotationAxis
-
rotationAxis
-
rotation
-
rotationX
-
rotationY
-
rotationZ
-
rotateTo
public Quaterniond rotateTo(double double1, double double2, double double3, double double4, double double5, double double6) -
rotateTo
- Specified by:
rotateTo
in interfaceQuaterniondc
-
rotateTo
-
rotate
- Specified by:
rotate
in interfaceQuaterniondc
-
rotate
-
rotate
-
rotate
- Specified by:
rotate
in interfaceQuaterniondc
-
rotateLocal
-
rotateLocal
public Quaterniond rotateLocal(double double1, double double2, double double3, Quaterniond quaterniond)- Specified by:
rotateLocal
in interfaceQuaterniondc
-
rotateX
-
rotateX
- Specified by:
rotateX
in interfaceQuaterniondc
-
rotateY
-
rotateY
- Specified by:
rotateY
in interfaceQuaterniondc
-
rotateZ
-
rotateZ
- Specified by:
rotateZ
in interfaceQuaterniondc
-
rotateLocalX
-
rotateLocalX
- Specified by:
rotateLocalX
in interfaceQuaterniondc
-
rotateLocalY
-
rotateLocalY
- Specified by:
rotateLocalY
in interfaceQuaterniondc
-
rotateLocalZ
-
rotateLocalZ
- Specified by:
rotateLocalZ
in interfaceQuaterniondc
-
rotateXYZ
-
rotateXYZ
public Quaterniond rotateXYZ(double double1, double double2, double double3, Quaterniond quaterniond)- Specified by:
rotateXYZ
in interfaceQuaterniondc
-
rotateZYX
-
rotateZYX
public Quaterniond rotateZYX(double double1, double double2, double double3, Quaterniond quaterniond)- Specified by:
rotateZYX
in interfaceQuaterniondc
-
rotateYXZ
-
rotateYXZ
public Quaterniond rotateYXZ(double double1, double double2, double double3, Quaterniond quaterniond)- Specified by:
rotateYXZ
in interfaceQuaterniondc
-
getEulerAnglesXYZ
- Specified by:
getEulerAnglesXYZ
in interfaceQuaterniondc
-
rotateAxis
public Quaterniond rotateAxis(double double1, double double2, double double3, double double4, Quaterniond quaterniond)- Specified by:
rotateAxis
in interfaceQuaterniondc
-
rotateAxis
- Specified by:
rotateAxis
in interfaceQuaterniondc
-
rotateAxis
-
rotateAxis
-
positiveX
- Specified by:
positiveX
in interfaceQuaterniondc
-
normalizedPositiveX
- Specified by:
normalizedPositiveX
in interfaceQuaterniondc
-
positiveY
- Specified by:
positiveY
in interfaceQuaterniondc
-
normalizedPositiveY
- Specified by:
normalizedPositiveY
in interfaceQuaterniondc
-
positiveZ
- Specified by:
positiveZ
in interfaceQuaterniondc
-
normalizedPositiveZ
- Specified by:
normalizedPositiveZ
in interfaceQuaterniondc
-
toImmutable
-