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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMatrix3d()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()doublebooleanbooleandouble[]get(double[] doubleArray) double[]get(double[] doubleArray, int int1) float[]get(float[] floatArray) float[]get(float[] floatArray, int int1) doubleget(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) doublegetRowColumn(int int1, int int2) getToAddress(long long1) getUnnormalizedRotation(Quaterniond quaterniond) getUnnormalizedRotation(Quaternionf quaternionf) inthashCode()identity()invert()booleanisFinite()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) doublem00()m00(double double1) doublem01()m01(double double1) doublem02()m02(double double1) doublem10()m10(double double1) doublem11()m11(double double1) doublem12()m12(double double1) doublem20()m20(double double1) doublem21()m21(double double1) doublem22()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) doublequadraticFormProduct(double double1, double double2, double double3) doublequadraticFormProduct(Vector3dc vector3dc) doublequadraticFormProduct(Vector3fc vector3fc) voidreadExternal(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) voidwriteExternal(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:
determinantin interfaceMatrix3dc
-
invert
-
invert
-
transpose
-
transpose
-
toString
-
toString
-
get
-
getRotation
- Specified by:
getRotationin interfaceMatrix3dc
-
getUnnormalizedRotation
- Specified by:
getUnnormalizedRotationin interfaceMatrix3dc
-
getNormalizedRotation
- Specified by:
getNormalizedRotationin interfaceMatrix3dc
-
getUnnormalizedRotation
- Specified by:
getUnnormalizedRotationin interfaceMatrix3dc
-
getNormalizedRotation
- Specified by:
getNormalizedRotationin interfaceMatrix3dc
-
get
-
get
-
get
-
get
-
get
-
get
-
getFloats
-
getFloats
-
getToAddress
- Specified by:
getToAddressin 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:
scaleLocalin interfaceMatrix3dc
-
scaleLocal
-
rotation
-
rotation
-
rotation
-
rotation
-
rotation
-
rotationX
-
rotationY
-
rotationZ
-
rotationXYZ
-
rotationZYX
-
rotationYXZ
-
rotation
-
rotation
-
transform
-
transform
-
transform
-
transform
-
transform
-
transformTranspose
- Specified by:
transformTransposein interfaceMatrix3dc
-
transformTranspose
- Specified by:
transformTransposein interfaceMatrix3dc
-
transformTranspose
public Vector3d transformTranspose(double double1, double double2, double double3, Vector3d vector3d) - Specified by:
transformTransposein interfaceMatrix3dc
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin 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:
rotateLocalin interfaceMatrix3dc
-
rotateLocal
-
rotateLocalX
- Specified by:
rotateLocalXin interfaceMatrix3dc
-
rotateLocalX
-
rotateLocalY
- Specified by:
rotateLocalYin interfaceMatrix3dc
-
rotateLocalY
-
rotateLocalZ
- Specified by:
rotateLocalZin interfaceMatrix3dc
-
rotateLocalZ
-
rotateLocal
- Specified by:
rotateLocalin interfaceMatrix3dc
-
rotateLocal
-
rotateLocal
- Specified by:
rotateLocalin interfaceMatrix3dc
-
rotateLocal
-
rotate
-
rotate
-
rotate
-
rotate
-
rotate
-
rotate
-
rotate
-
rotate
-
rotate
-
rotate
-
rotate
-
rotate
-
getRow
- Specified by:
getRowin 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:
getColumnin 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:
getRowColumnin 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:
normalizedPositiveZin interfaceMatrix3dc
-
positiveX
-
normalizedPositiveX
- Specified by:
normalizedPositiveXin interfaceMatrix3dc
-
positiveY
-
normalizedPositiveY
- Specified by:
normalizedPositiveYin interfaceMatrix3dc
-
hashCode
public int hashCode() -
equals
-
equals
-
swap
-
add
-
add
-
sub
-
sub
-
mulComponentWise
-
mulComponentWise
- Specified by:
mulComponentWisein interfaceMatrix3dc
-
setSkewSymmetric
-
lerp
-
lerp
-
rotateTowards
- Specified by:
rotateTowardsin 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:
rotateTowardsin interfaceMatrix3dc
-
rotationTowards
-
rotationTowards
public Matrix3d rotationTowards(double double1, double double2, double double3, double double4, double double5, double double6) -
getEulerAnglesZYX
- Specified by:
getEulerAnglesZYXin 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:
quadraticFormProductin interfaceMatrix3dc
-
quadraticFormProduct
- Specified by:
quadraticFormProductin interfaceMatrix3dc
-
quadraticFormProduct
- Specified by:
quadraticFormProductin interfaceMatrix3dc
-