Package org.joml
Class Matrix3d
java.lang.Object
org.joml.Matrix3d
- All Implemented Interfaces:
Externalizable
,Serializable
,Matrix3dc
- Direct Known Subclasses:
Matrix3dStack
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMatrix3d()
Matrix3d
(double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8, double double9) Matrix3d
(DoubleBuffer doubleBuffer) -
Method Summary
Modifier and TypeMethodDescriptioncofactor()
double
boolean
boolean
double[]
get
(double[] doubleArray) double[]
get
(double[] doubleArray, int int1) float[]
get
(float[] floatArray) float[]
get
(float[] floatArray, int int1) double
get
(int int1, int int2) get
(int int1, ByteBuffer byteBuffer) get
(int int1, DoubleBuffer doubleBuffer) get
(int int1, FloatBuffer floatBuffer) get
(ByteBuffer byteBuffer) get
(DoubleBuffer doubleBuffer) get
(FloatBuffer floatBuffer) getEulerAnglesZYX
(Vector3d vector3d) getFloats
(int int1, ByteBuffer byteBuffer) getFloats
(ByteBuffer byteBuffer) getNormalizedRotation
(Quaterniond quaterniond) getNormalizedRotation
(Quaternionf quaternionf) getRotation
(AxisAngle4f axisAngle4f) double
getRowColumn
(int int1, int int2) getToAddress
(long long1) getUnnormalizedRotation
(Quaterniond quaterniond) getUnnormalizedRotation
(Quaternionf quaternionf) int
hashCode()
identity()
invert()
boolean
isFinite()
lookAlong
(double double1, double double2, double double3, double double4, double double5, double double6) lookAlong
(double double1, double double2, double double3, double double4, double double5, double double6, Matrix3d matrix3d) double
m00()
m00
(double double1) double
m01()
m01
(double double1) double
m02()
m02
(double double1) double
m10()
m10
(double double1) double
m11()
m11
(double double1) double
m12()
m12
(double double1) double
m20()
m20
(double double1) double
m21()
m21
(double double1) double
m22()
m22
(double double1) mulComponentWise
(Matrix3dc matrix3dc) mulComponentWise
(Matrix3dc matrix3dc, Matrix3d matrix3d) normal()
normalizedPositiveX
(Vector3d vector3d) normalizedPositiveY
(Vector3d vector3d) normalizedPositiveZ
(Vector3d vector3d) obliqueZ
(double double1, double double2) double
quadraticFormProduct
(double double1, double double2, double double3) double
quadraticFormProduct
(Vector3dc vector3dc) double
quadraticFormProduct
(Vector3fc vector3fc) void
readExternal
(ObjectInput objectInput) reflect
(double double1, double double2, double double3) reflect
(Quaterniondc quaterniondc) reflect
(Quaterniondc quaterniondc, Matrix3d matrix3d) reflection
(double double1, double double2, double double3) reflection
(Quaterniondc quaterniondc) reflection
(Vector3dc vector3dc) rotate
(double double1, double double2, double double3, double double4) rotate
(AxisAngle4d axisAngle4d) rotate
(AxisAngle4d axisAngle4d, Matrix3d matrix3d) rotate
(AxisAngle4f axisAngle4f) rotate
(AxisAngle4f axisAngle4f, Matrix3d matrix3d) rotate
(Quaterniondc quaterniondc) rotate
(Quaterniondc quaterniondc, Matrix3d matrix3d) rotate
(Quaternionfc quaternionfc) rotate
(Quaternionfc quaternionfc, Matrix3d matrix3d) rotateLocal
(double double1, double double2, double double3, double double4) rotateLocal
(double double1, double double2, double double3, double double4, Matrix3d matrix3d) rotateLocal
(Quaterniondc quaterniondc) rotateLocal
(Quaterniondc quaterniondc, Matrix3d matrix3d) rotateLocal
(Quaternionfc quaternionfc) rotateLocal
(Quaternionfc quaternionfc, Matrix3d matrix3d) rotateLocalX
(double double1) rotateLocalX
(double double1, Matrix3d matrix3d) rotateLocalY
(double double1) rotateLocalY
(double double1, Matrix3d matrix3d) rotateLocalZ
(double double1) rotateLocalZ
(double double1, Matrix3d matrix3d) rotateTowards
(double double1, double double2, double double3, double double4, double double5, double double6) rotateTowards
(double double1, double double2, double double3, double double4, double double5, double double6, Matrix3d matrix3d) rotateTowards
(Vector3dc vector3dc, Vector3dc vector3dc2) rotateTowards
(Vector3dc vector3dc, Vector3dc vector3dc2, Matrix3d matrix3d) rotateX
(double double1) rotateXYZ
(double double1, double double2, double double3) rotateY
(double double1) rotateYXZ
(double double1, double double2, double double3) rotateZ
(double double1) rotateZYX
(double double1, double double2, double double3) rotation
(double double1, double double2, double double3, double double4) rotation
(AxisAngle4d axisAngle4d) rotation
(AxisAngle4f axisAngle4f) rotation
(Quaterniondc quaterniondc) rotation
(Quaternionfc quaternionfc) rotationTowards
(double double1, double double2, double double3, double double4, double double5, double double6) rotationTowards
(Vector3dc vector3dc, Vector3dc vector3dc2) rotationX
(double double1) rotationXYZ
(double double1, double double2, double double3) rotationY
(double double1) rotationYXZ
(double double1, double double2, double double3) rotationZ
(double double1) rotationZYX
(double double1, double double2, double double3) scale
(double double1) scale
(double double1, double double2, double double3) scaleLocal
(double double1, double double2, double double3) scaleLocal
(double double1, double double2, double double3, Matrix3d matrix3d) scaling
(double double1) scaling
(double double1, double double2, double double3) set
(double[] doubleArray) set
(double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8, double double9) set
(float[] floatArray) set
(int int1, int int2, double double1) set
(ByteBuffer byteBuffer) set
(DoubleBuffer doubleBuffer) set
(FloatBuffer floatBuffer) set
(AxisAngle4d axisAngle4d) set
(AxisAngle4f axisAngle4f) set
(Matrix4x3dc matrix4x3dc) set
(Quaterniondc quaterniondc) set
(Quaternionfc quaternionfc) setColumn
(int int1, double double1, double double2, double double3) setFloats
(ByteBuffer byteBuffer) setFromAddress
(long long1) setLookAlong
(double double1, double double2, double double3, double double4, double double5, double double6) setLookAlong
(Vector3dc vector3dc, Vector3dc vector3dc2) setRow
(int int1, double double1, double double2, double double3) setRowColumn
(int int1, int int2, double double1) setSkewSymmetric
(double double1, double double2, double double3) setTransposed
(Matrix3dc matrix3dc) setTransposed
(Matrix3fc matrix3fc) toString()
toString
(NumberFormat numberFormat) transformTranspose
(double double1, double double2, double double3, Vector3d vector3d) transformTranspose
(Vector3d vector3d) transformTranspose
(Vector3dc vector3dc, Vector3d vector3d) void
writeExternal
(ObjectOutput objectOutput) zero()
-
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
-
Matrix3d
-
Matrix3d
public Matrix3d(double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8, double double9) -
Matrix3d
-
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
-
setTransposed
-
set
-
setTransposed
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
mul
-
mul
-
mulLocal
-
mulLocal
-
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
-
toString
-
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
-
get
-
get
-
get
-
get
-
get
-
getFloats
-
getFloats
-
getToAddress
- Specified by:
getToAddress
in interfaceMatrix3dc
-
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
-
setFromAddress
-
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
-
transform
-
transform
-
transformTranspose
- Specified by:
transformTranspose
in interfaceMatrix3dc
-
transformTranspose
- Specified by:
transformTranspose
in interfaceMatrix3dc
-
transformTranspose
public Vector3d transformTranspose(double double1, double double2, double double3, Vector3d vector3d) - Specified by:
transformTranspose
in interfaceMatrix3dc
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
-
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
-
rotateLocalX
- Specified by:
rotateLocalX
in interfaceMatrix3dc
-
rotateLocalX
-
rotateLocalY
- Specified by:
rotateLocalY
in interfaceMatrix3dc
-
rotateLocalY
-
rotateLocalZ
- Specified by:
rotateLocalZ
in interfaceMatrix3dc
-
rotateLocalZ
-
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
- Specified by:
getRow
in interfaceMatrix3dc
- Throws:
IndexOutOfBoundsException
-
setRow
- Throws:
IndexOutOfBoundsException
-
setRow
public Matrix3d setRow(int int1, double double1, double double2, double double3) throws IndexOutOfBoundsException - Throws:
IndexOutOfBoundsException
-
getColumn
- Specified by:
getColumn
in interfaceMatrix3dc
- Throws:
IndexOutOfBoundsException
-
setColumn
- Throws:
IndexOutOfBoundsException
-
setColumn
public Matrix3d setColumn(int int1, double double1, double double2, double double3) throws IndexOutOfBoundsException - Throws:
IndexOutOfBoundsException
-
get
public double get(int int1, int int2) -
set
-
getRowColumn
public double getRowColumn(int int1, int int2) - Specified by:
getRowColumn
in interfaceMatrix3dc
-
setRowColumn
-
normal
-
normal
-
cofactor
-
cofactor
-
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() -
equals
-
equals
-
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
-
obliqueZ
-
obliqueZ
-
reflect
-
reflect
-
reflect
-
reflect
-
reflect
-
reflect
-
reflection
-
reflection
-
reflection
-
isFinite
public boolean isFinite() -
quadraticFormProduct
public double quadraticFormProduct(double double1, double double2, double double3) - Specified by:
quadraticFormProduct
in interfaceMatrix3dc
-
quadraticFormProduct
- Specified by:
quadraticFormProduct
in interfaceMatrix3dc
-
quadraticFormProduct
- Specified by:
quadraticFormProduct
in interfaceMatrix3dc
-