Package org.joml
Class Matrix3d
java.lang.Object
org.joml.Matrix3d
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,Matrix3dc
public class Matrix3d extends java.lang.Object implements java.io.Externalizable, Matrix3dc
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Matrix3d()
Matrix3d(double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8, double double9)
Matrix3d(java.nio.DoubleBuffer doubleBuffer)
Matrix3d(Matrix3dc matrix3dc)
Matrix3d(Matrix3fc matrix3fc)
Matrix3d(Matrix4dc matrix4dc)
Matrix3d(Matrix4fc matrix4fc)
Matrix3d(Vector3dc vector3dc, Vector3dc vector3dc2, Vector3dc vector3dc3)
-
Method Summary
Modifier and Type Method Description Matrix3d
add(Matrix3dc matrix3dc)
Matrix3d
add(Matrix3dc matrix3dc, Matrix3d matrix3d)
double
determinant()
boolean
equals(java.lang.Object object)
double[]
get(double[] doubleArray)
double[]
get(double[] doubleArray, int int1)
float[]
get(float[] floatArray)
float[]
get(float[] floatArray, int int1)
java.nio.ByteBuffer
get(int int1, java.nio.ByteBuffer byteBuffer)
java.nio.DoubleBuffer
get(int int1, java.nio.DoubleBuffer doubleBuffer)
java.nio.FloatBuffer
get(int int1, java.nio.FloatBuffer floatBuffer)
java.nio.ByteBuffer
get(java.nio.ByteBuffer byteBuffer)
java.nio.DoubleBuffer
get(java.nio.DoubleBuffer doubleBuffer)
java.nio.FloatBuffer
get(java.nio.FloatBuffer floatBuffer)
Matrix3d
get(Matrix3d matrix3d)
Vector3d
getColumn(int int1, Vector3d vector3d)
Vector3d
getEulerAnglesZYX(Vector3d vector3d)
java.nio.ByteBuffer
getFloats(int int1, java.nio.ByteBuffer byteBuffer)
java.nio.ByteBuffer
getFloats(java.nio.ByteBuffer byteBuffer)
Quaterniond
getNormalizedRotation(Quaterniond quaterniond)
Quaternionf
getNormalizedRotation(Quaternionf quaternionf)
AxisAngle4f
getRotation(AxisAngle4f axisAngle4f)
Vector3d
getRow(int int1, Vector3d vector3d)
Vector3d
getScale(Vector3d vector3d)
Quaterniond
getUnnormalizedRotation(Quaterniond quaterniond)
Quaternionf
getUnnormalizedRotation(Quaternionf quaternionf)
int
hashCode()
Matrix3d
identity()
Matrix3d
invert()
Matrix3d
invert(Matrix3d matrix3d)
Matrix3d
lerp(Matrix3dc matrix3dc, double double1)
Matrix3d
lerp(Matrix3dc matrix3dc, double double1, Matrix3d matrix3d)
Matrix3d
lookAlong(double double1, double double2, double double3, double double4, double double5, double double6)
Matrix3d
lookAlong(double double1, double double2, double double3, double double4, double double5, double double6, Matrix3d matrix3d)
Matrix3d
lookAlong(Vector3dc vector3dc, Vector3dc vector3dc2)
Matrix3d
lookAlong(Vector3dc vector3dc, Vector3dc vector3dc2, Matrix3d matrix3d)
double
m00()
Matrix3d
m00(double double1)
double
m01()
Matrix3d
m01(double double1)
double
m02()
Matrix3d
m02(double double1)
double
m10()
Matrix3d
m10(double double1)
double
m11()
Matrix3d
m11(double double1)
double
m12()
Matrix3d
m12(double double1)
double
m20()
Matrix3d
m20(double double1)
double
m21()
Matrix3d
m21(double double1)
double
m22()
Matrix3d
m22(double double1)
Matrix3d
mul(Matrix3dc matrix3dc)
Matrix3d
mul(Matrix3dc matrix3dc, Matrix3d matrix3d)
Matrix3d
mul(Matrix3fc matrix3fc)
Matrix3d
mul(Matrix3fc matrix3fc, Matrix3d matrix3d)
Matrix3d
mulComponentWise(Matrix3dc matrix3dc)
Matrix3d
mulComponentWise(Matrix3dc matrix3dc, Matrix3d matrix3d)
Matrix3d
normal()
Matrix3d
normal(Matrix3d matrix3d)
Vector3d
normalizedPositiveX(Vector3d vector3d)
Vector3d
normalizedPositiveY(Vector3d vector3d)
Vector3d
normalizedPositiveZ(Vector3d vector3d)
Vector3d
positiveX(Vector3d vector3d)
Vector3d
positiveY(Vector3d vector3d)
Vector3d
positiveZ(Vector3d vector3d)
void
readExternal(java.io.ObjectInput objectInput)
Matrix3d
rotate(double double1, double double2, double double3, double double4)
Matrix3d
rotate(double double1, double double2, double double3, double double4, Matrix3d matrix3d)
Matrix3d
rotate(double double1, Vector3dc vector3dc)
Matrix3d
rotate(double double1, Vector3dc vector3dc, Matrix3d matrix3d)
Matrix3d
rotate(double double1, Vector3fc vector3fc)
Matrix3d
rotate(double double1, Vector3fc vector3fc, Matrix3d matrix3d)
Matrix3d
rotate(AxisAngle4d axisAngle4d)
Matrix3d
rotate(AxisAngle4d axisAngle4d, Matrix3d matrix3d)
Matrix3d
rotate(AxisAngle4f axisAngle4f)
Matrix3d
rotate(AxisAngle4f axisAngle4f, Matrix3d matrix3d)
Matrix3d
rotate(Quaterniondc quaterniondc)
Matrix3d
rotate(Quaterniondc quaterniondc, Matrix3d matrix3d)
Matrix3d
rotate(Quaternionfc quaternionfc)
Matrix3d
rotate(Quaternionfc quaternionfc, Matrix3d matrix3d)
Matrix3d
rotateLocal(double double1, double double2, double double3, double double4)
Matrix3d
rotateLocal(double double1, double double2, double double3, double double4, Matrix3d matrix3d)
Matrix3d
rotateLocal(Quaterniondc quaterniondc)
Matrix3d
rotateLocal(Quaterniondc quaterniondc, Matrix3d matrix3d)
Matrix3d
rotateLocal(Quaternionfc quaternionfc)
Matrix3d
rotateLocal(Quaternionfc quaternionfc, Matrix3d matrix3d)
Matrix3d
rotateTowards(double double1, double double2, double double3, double double4, double double5, double double6)
Matrix3d
rotateTowards(double double1, double double2, double double3, double double4, double double5, double double6, Matrix3d matrix3d)
Matrix3d
rotateTowards(Vector3dc vector3dc, Vector3dc vector3dc2)
Matrix3d
rotateTowards(Vector3dc vector3dc, Vector3dc vector3dc2, Matrix3d matrix3d)
Matrix3d
rotateX(double double1)
Matrix3d
rotateX(double double1, Matrix3d matrix3d)
Matrix3d
rotateXYZ(double double1, double double2, double double3)
Matrix3d
rotateXYZ(double double1, double double2, double double3, Matrix3d matrix3d)
Matrix3d
rotateY(double double1)
Matrix3d
rotateY(double double1, Matrix3d matrix3d)
Matrix3d
rotateYXZ(double double1, double double2, double double3)
Matrix3d
rotateYXZ(double double1, double double2, double double3, Matrix3d matrix3d)
Matrix3d
rotateYXZ(Vector3d vector3d)
Matrix3d
rotateZ(double double1)
Matrix3d
rotateZ(double double1, Matrix3d matrix3d)
Matrix3d
rotateZYX(double double1, double double2, double double3)
Matrix3d
rotateZYX(double double1, double double2, double double3, Matrix3d matrix3d)
Matrix3d
rotation(double double1, double double2, double double3, double double4)
Matrix3d
rotation(double double1, Vector3dc vector3dc)
Matrix3d
rotation(double double1, Vector3fc vector3fc)
Matrix3d
rotation(AxisAngle4d axisAngle4d)
Matrix3d
rotation(AxisAngle4f axisAngle4f)
Matrix3d
rotation(Quaterniondc quaterniondc)
Matrix3d
rotation(Quaternionfc quaternionfc)
Matrix3d
rotationTowards(double double1, double double2, double double3, double double4, double double5, double double6)
Matrix3d
rotationTowards(Vector3dc vector3dc, Vector3dc vector3dc2)
Matrix3d
rotationX(double double1)
Matrix3d
rotationXYZ(double double1, double double2, double double3)
Matrix3d
rotationY(double double1)
Matrix3d
rotationYXZ(double double1, double double2, double double3)
Matrix3d
rotationZ(double double1)
Matrix3d
rotationZYX(double double1, double double2, double double3)
Matrix3d
scale(double double1)
Matrix3d
scale(double double1, double double2, double double3)
Matrix3d
scale(double double1, double double2, double double3, Matrix3d matrix3d)
Matrix3d
scale(double double1, Matrix3d matrix3d)
Matrix3d
scale(Vector3dc vector3dc)
Matrix3d
scale(Vector3dc vector3dc, Matrix3d matrix3d)
Matrix3d
scaleLocal(double double1, double double2, double double3)
Matrix3d
scaleLocal(double double1, double double2, double double3, Matrix3d matrix3d)
Matrix3d
scaling(double double1)
Matrix3d
scaling(double double1, double double2, double double3)
Matrix3d
scaling(Vector3dc vector3dc)
Matrix3d
set(double[] doubleArray)
Matrix3d
set(double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8, double double9)
Matrix3d
set(float[] floatArray)
Matrix3d
set(java.nio.ByteBuffer byteBuffer)
Matrix3d
set(java.nio.DoubleBuffer doubleBuffer)
Matrix3d
set(java.nio.FloatBuffer floatBuffer)
Matrix3d
set(AxisAngle4d axisAngle4d)
Matrix3d
set(AxisAngle4f axisAngle4f)
Matrix3d
set(Matrix3dc matrix3dc)
Matrix3d
set(Matrix3fc matrix3fc)
Matrix3d
set(Matrix4dc matrix4dc)
Matrix3d
set(Matrix4fc matrix4fc)
Matrix3d
set(Quaterniondc quaterniondc)
Matrix3d
set(Quaternionfc quaternionfc)
Matrix3d
set(Vector3dc vector3dc, Vector3dc vector3dc2, Vector3dc vector3dc3)
Matrix3d
setColumn(int int1, Vector3dc vector3dc)
Matrix3d
setFloats(java.nio.ByteBuffer byteBuffer)
Matrix3d
setLookAlong(double double1, double double2, double double3, double double4, double double5, double double6)
Matrix3d
setLookAlong(Vector3dc vector3dc, Vector3dc vector3dc2)
Matrix3d
setRow(int int1, Vector3dc vector3dc)
Matrix3d
setSkewSymmetric(double double1, double double2, double double3)
Matrix3d
sub(Matrix3dc matrix3dc)
Matrix3d
sub(Matrix3dc matrix3dc, Matrix3d matrix3d)
Matrix3d
swap(Matrix3d matrix3d)
Matrix3dc
toImmutable()
java.lang.String
toString()
java.lang.String
toString(java.text.NumberFormat numberFormat)
Vector3d
transform(double double1, double double2, double double3, Vector3d vector3d)
Vector3d
transform(Vector3d vector3d)
Vector3d
transform(Vector3dc vector3dc, Vector3d vector3d)
Matrix3d
transpose()
Matrix3d
transpose(Matrix3d matrix3d)
void
writeExternal(java.io.ObjectOutput objectOutput)
Matrix3d
zero()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
m00
public double m00 -
m01
public double m01 -
m02
public double m02 -
m10
public double m10 -
m11
public double m11 -
m12
public double m12 -
m20
public double m20 -
m21
public double m21 -
m22
public double m22
-
-
Constructor Details
-
Matrix3d
public Matrix3d() -
Matrix3d
-
Matrix3d
-
Matrix3d
-
Matrix3d
-
Matrix3d
public Matrix3d(double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8, double double9) -
Matrix3d
public Matrix3d(java.nio.DoubleBuffer doubleBuffer) -
Matrix3d
-
-
Method Details
-
m00
public double m00() -
m01
public double m01() -
m02
public double m02() -
m10
public double m10() -
m11
public double m11() -
m12
public double m12() -
m20
public double m20() -
m21
public double m21() -
m22
public double m22() -
m00
-
m01
-
m02
-
m10
-
m11
-
m12
-
m20
-
m21
-
m22
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
mul
-
mul
-
mul
-
mul
-
set
public Matrix3d set(double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8, double double9) -
set
-
set
-
determinant
public double determinant()- Specified by:
determinant
in interfaceMatrix3dc
-
invert
-
invert
-
transpose
-
transpose
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(java.text.NumberFormat numberFormat) -
get
-
getRotation
- Specified by:
getRotation
in interfaceMatrix3dc
-
getUnnormalizedRotation
- Specified by:
getUnnormalizedRotation
in interfaceMatrix3dc
-
getNormalizedRotation
- Specified by:
getNormalizedRotation
in interfaceMatrix3dc
-
getUnnormalizedRotation
- Specified by:
getUnnormalizedRotation
in interfaceMatrix3dc
-
getNormalizedRotation
- Specified by:
getNormalizedRotation
in interfaceMatrix3dc
-
get
public java.nio.DoubleBuffer get(java.nio.DoubleBuffer doubleBuffer) -
get
public java.nio.DoubleBuffer get(int int1, java.nio.DoubleBuffer doubleBuffer) -
get
public java.nio.FloatBuffer get(java.nio.FloatBuffer floatBuffer) -
get
public java.nio.FloatBuffer get(int int1, java.nio.FloatBuffer floatBuffer) -
get
public java.nio.ByteBuffer get(java.nio.ByteBuffer byteBuffer) -
get
public java.nio.ByteBuffer get(int int1, java.nio.ByteBuffer byteBuffer) -
getFloats
public java.nio.ByteBuffer getFloats(java.nio.ByteBuffer byteBuffer) -
getFloats
public java.nio.ByteBuffer getFloats(int int1, java.nio.ByteBuffer byteBuffer) -
get
public double[] get(double[] doubleArray, int int1) -
get
public double[] get(double[] doubleArray) -
get
public float[] get(float[] floatArray, int int1) -
get
public float[] get(float[] floatArray) -
set
-
set
-
set
-
setFloats
-
set
-
zero
-
identity
-
scaling
-
scaling
-
scaling
-
scale
-
scale
-
scale
-
scale
-
scale
-
scale
-
scaleLocal
- Specified by:
scaleLocal
in interfaceMatrix3dc
-
scaleLocal
-
rotation
-
rotation
-
rotation
-
rotation
-
rotation
-
rotationX
-
rotationY
-
rotationZ
-
rotationXYZ
-
rotationZYX
-
rotationYXZ
-
rotation
-
rotation
-
transform
-
transform
-
transform
-
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
-
rotateX
-
rotateX
-
rotateY
-
rotateY
-
rotateZ
-
rotateZ
-
rotateXYZ
-
rotateXYZ
-
rotateZYX
-
rotateZYX
-
rotateYXZ
-
rotateYXZ
-
rotateYXZ
-
rotate
-
rotate
-
rotateLocal
public Matrix3d rotateLocal(double double1, double double2, double double3, double double4, Matrix3d matrix3d)- Specified by:
rotateLocal
in interfaceMatrix3dc
-
rotateLocal
-
rotateLocal
- Specified by:
rotateLocal
in interfaceMatrix3dc
-
rotateLocal
-
rotateLocal
- Specified by:
rotateLocal
in interfaceMatrix3dc
-
rotateLocal
-
rotate
-
rotate
-
rotate
-
rotate
-
rotate
-
rotate
-
rotate
-
rotate
-
rotate
-
rotate
-
rotate
-
rotate
-
getRow
-
setRow
- Throws:
java.lang.IndexOutOfBoundsException
-
getColumn
-
setColumn
public Matrix3d setColumn(int int1, Vector3dc vector3dc) throws java.lang.IndexOutOfBoundsException- Throws:
java.lang.IndexOutOfBoundsException
-
normal
-
normal
-
lookAlong
-
lookAlong
-
lookAlong
-
lookAlong
public Matrix3d lookAlong(double double1, double double2, double double3, double double4, double double5, double double6) -
setLookAlong
-
setLookAlong
public Matrix3d setLookAlong(double double1, double double2, double double3, double double4, double double5, double double6) -
getScale
-
positiveZ
-
normalizedPositiveZ
- Specified by:
normalizedPositiveZ
in interfaceMatrix3dc
-
positiveX
-
normalizedPositiveX
- Specified by:
normalizedPositiveX
in interfaceMatrix3dc
-
positiveY
-
normalizedPositiveY
- Specified by:
normalizedPositiveY
in interfaceMatrix3dc
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)- Overrides:
equals
in classjava.lang.Object
-
swap
-
add
-
add
-
sub
-
sub
-
mulComponentWise
-
mulComponentWise
- Specified by:
mulComponentWise
in interfaceMatrix3dc
-
setSkewSymmetric
-
lerp
-
lerp
-
rotateTowards
- Specified by:
rotateTowards
in interfaceMatrix3dc
-
rotateTowards
-
rotateTowards
public Matrix3d rotateTowards(double double1, double double2, double double3, double double4, double double5, double double6) -
rotateTowards
public Matrix3d rotateTowards(double double1, double double2, double double3, double double4, double double5, double double6, Matrix3d matrix3d)- Specified by:
rotateTowards
in interfaceMatrix3dc
-
rotationTowards
-
rotationTowards
public Matrix3d rotationTowards(double double1, double double2, double double3, double double4, double double5, double double6) -
getEulerAnglesZYX
- Specified by:
getEulerAnglesZYX
in interfaceMatrix3dc
-
toImmutable
-