Package org.joml
Class Matrix3f
java.lang.Object
org.joml.Matrix3f
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,Matrix3fc
public class Matrix3f extends java.lang.Object implements java.io.Externalizable, Matrix3fc
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Matrix3f()Matrix3f(float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9)Matrix3f(java.nio.FloatBuffer floatBuffer)Matrix3f(Matrix3fc matrix3fc)Matrix3f(Matrix4fc matrix4fc)Matrix3f(Vector3fc vector3fc, Vector3fc vector3fc2, Vector3fc vector3fc3) -
Method Summary
Modifier and Type Method Description Matrix3fadd(Matrix3fc matrix3fc)Matrix3fadd(Matrix3fc matrix3fc, Matrix3f matrix3f)floatdeterminant()booleanequals(java.lang.Object object)float[]get(float[] floatArray)float[]get(float[] floatArray, int int1)java.nio.ByteBufferget(int int1, java.nio.ByteBuffer byteBuffer)java.nio.FloatBufferget(int int1, java.nio.FloatBuffer floatBuffer)java.nio.ByteBufferget(java.nio.ByteBuffer byteBuffer)java.nio.FloatBufferget(java.nio.FloatBuffer floatBuffer)Matrix3fget(Matrix3f matrix3f)Matrix4fget(Matrix4f matrix4f)Vector3fgetColumn(int int1, Vector3f vector3f)Vector3fgetEulerAnglesZYX(Vector3f vector3f)QuaterniondgetNormalizedRotation(Quaterniond quaterniond)QuaternionfgetNormalizedRotation(Quaternionf quaternionf)AxisAngle4fgetRotation(AxisAngle4f axisAngle4f)Vector3fgetRow(int int1, Vector3f vector3f)Vector3fgetScale(Vector3f vector3f)java.nio.ByteBuffergetTransposed(int int1, java.nio.ByteBuffer byteBuffer)java.nio.FloatBuffergetTransposed(int int1, java.nio.FloatBuffer floatBuffer)java.nio.ByteBuffergetTransposed(java.nio.ByteBuffer byteBuffer)java.nio.FloatBuffergetTransposed(java.nio.FloatBuffer floatBuffer)QuaterniondgetUnnormalizedRotation(Quaterniond quaterniond)QuaternionfgetUnnormalizedRotation(Quaternionf quaternionf)inthashCode()Matrix3fidentity()Matrix3finvert()Matrix3finvert(Matrix3f matrix3f)Matrix3flerp(Matrix3fc matrix3fc, float float1)Matrix3flerp(Matrix3fc matrix3fc, float float1, Matrix3f matrix3f)Matrix3flookAlong(float float1, float float2, float float3, float float4, float float5, float float6)Matrix3flookAlong(float float1, float float2, float float3, float float4, float float5, float float6, Matrix3f matrix3f)Matrix3flookAlong(Vector3fc vector3fc, Vector3fc vector3fc2)Matrix3flookAlong(Vector3fc vector3fc, Vector3fc vector3fc2, Matrix3f matrix3f)floatm00()Matrix3fm00(float float1)floatm01()Matrix3fm01(float float1)floatm02()Matrix3fm02(float float1)floatm10()Matrix3fm10(float float1)floatm11()Matrix3fm11(float float1)floatm12()Matrix3fm12(float float1)floatm20()Matrix3fm20(float float1)floatm21()Matrix3fm21(float float1)floatm22()Matrix3fm22(float float1)Matrix3fmul(Matrix3fc matrix3fc)Matrix3fmul(Matrix3fc matrix3fc, Matrix3f matrix3f)Matrix3fmulComponentWise(Matrix3fc matrix3fc)Matrix3fmulComponentWise(Matrix3fc matrix3fc, Matrix3f matrix3f)Matrix3fnormal()Matrix3fnormal(Matrix3f matrix3f)Vector3fnormalizedPositiveX(Vector3f vector3f)Vector3fnormalizedPositiveY(Vector3f vector3f)Vector3fnormalizedPositiveZ(Vector3f vector3f)Vector3fpositiveX(Vector3f vector3f)Vector3fpositiveY(Vector3f vector3f)Vector3fpositiveZ(Vector3f vector3f)voidreadExternal(java.io.ObjectInput objectInput)Matrix3frotate(float float1, float float2, float float3, float float4)Matrix3frotate(float float1, float float2, float float3, float float4, Matrix3f matrix3f)Matrix3frotate(float float1, Vector3fc vector3fc)Matrix3frotate(float float1, Vector3fc vector3fc, Matrix3f matrix3f)Matrix3frotate(AxisAngle4f axisAngle4f)Matrix3frotate(AxisAngle4f axisAngle4f, Matrix3f matrix3f)Matrix3frotate(Quaternionfc quaternionfc)Matrix3frotate(Quaternionfc quaternionfc, Matrix3f matrix3f)Matrix3frotateLocal(float float1, float float2, float float3, float float4)Matrix3frotateLocal(float float1, float float2, float float3, float float4, Matrix3f matrix3f)Matrix3frotateLocal(Quaternionfc quaternionfc)Matrix3frotateLocal(Quaternionfc quaternionfc, Matrix3f matrix3f)Matrix3frotateTowards(float float1, float float2, float float3, float float4, float float5, float float6)Matrix3frotateTowards(float float1, float float2, float float3, float float4, float float5, float float6, Matrix3f matrix3f)Matrix3frotateTowards(Vector3fc vector3fc, Vector3fc vector3fc2)Matrix3frotateTowards(Vector3fc vector3fc, Vector3fc vector3fc2, Matrix3f matrix3f)Matrix3frotateX(float float1)Matrix3frotateX(float float1, Matrix3f matrix3f)Matrix3frotateXYZ(float float1, float float2, float float3)Matrix3frotateXYZ(float float1, float float2, float float3, Matrix3f matrix3f)Matrix3frotateXYZ(Vector3f vector3f)Matrix3frotateY(float float1)Matrix3frotateY(float float1, Matrix3f matrix3f)Matrix3frotateYXZ(float float1, float float2, float float3)Matrix3frotateYXZ(float float1, float float2, float float3, Matrix3f matrix3f)Matrix3frotateYXZ(Vector3f vector3f)Matrix3frotateZ(float float1)Matrix3frotateZ(float float1, Matrix3f matrix3f)Matrix3frotateZYX(float float1, float float2, float float3)Matrix3frotateZYX(float float1, float float2, float float3, Matrix3f matrix3f)Matrix3frotateZYX(Vector3f vector3f)Matrix3frotation(float float1, float float2, float float3, float float4)Matrix3frotation(float float1, Vector3fc vector3fc)Matrix3frotation(AxisAngle4f axisAngle4f)Matrix3frotation(Quaternionfc quaternionfc)Matrix3frotationTowards(float float1, float float2, float float3, float float4, float float5, float float6)Matrix3frotationTowards(Vector3fc vector3fc, Vector3fc vector3fc2)Matrix3frotationX(float float1)Matrix3frotationXYZ(float float1, float float2, float float3)Matrix3frotationY(float float1)Matrix3frotationYXZ(float float1, float float2, float float3)Matrix3frotationZ(float float1)Matrix3frotationZYX(float float1, float float2, float float3)Matrix3fscale(float float1)Matrix3fscale(float float1, float float2, float float3)Matrix3fscale(float float1, float float2, float float3, Matrix3f matrix3f)Matrix3fscale(float float1, Matrix3f matrix3f)Matrix3fscale(Vector3fc vector3fc)Matrix3fscale(Vector3fc vector3fc, Matrix3f matrix3f)Matrix3fscaleLocal(float float1, float float2, float float3)Matrix3fscaleLocal(float float1, float float2, float float3, Matrix3f matrix3f)Matrix3fscaling(float float1)Matrix3fscaling(float float1, float float2, float float3)Matrix3fscaling(Vector3fc vector3fc)Matrix3fset(float[] floatArray)Matrix3fset(float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9)Matrix3fset(java.nio.ByteBuffer byteBuffer)Matrix3fset(java.nio.FloatBuffer floatBuffer)Matrix3fset(AxisAngle4d axisAngle4d)Matrix3fset(AxisAngle4f axisAngle4f)Matrix3fset(Matrix3fc matrix3fc)Matrix3fset(Matrix4fc matrix4fc)Matrix3fset(Quaterniondc quaterniondc)Matrix3fset(Quaternionfc quaternionfc)Matrix3fset(Vector3fc vector3fc, Vector3fc vector3fc2, Vector3fc vector3fc3)Matrix3fsetColumn(int int1, Vector3fc vector3fc)Matrix3fsetLookAlong(float float1, float float2, float float3, float float4, float float5, float float6)Matrix3fsetLookAlong(Vector3fc vector3fc, Vector3fc vector3fc2)Matrix3fsetRow(int int1, Vector3fc vector3fc)Matrix3fsetSkewSymmetric(float float1, float float2, float float3)Matrix3fsub(Matrix3fc matrix3fc)Matrix3fsub(Matrix3fc matrix3fc, Matrix3f matrix3f)Matrix3fswap(Matrix3f matrix3f)Matrix3fctoImmutable()java.lang.StringtoString()java.lang.StringtoString(java.text.NumberFormat numberFormat)Vector3ftransform(float float1, float float2, float float3, Vector3f vector3f)Vector3ftransform(Vector3f vector3f)Vector3ftransform(Vector3fc vector3fc, Vector3f vector3f)Matrix3ftranspose()Matrix3ftranspose(Matrix3f matrix3f)voidwriteExternal(java.io.ObjectOutput objectOutput)Matrix3fzero()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
m00
public float m00 -
m01
public float m01 -
m02
public float m02 -
m10
public float m10 -
m11
public float m11 -
m12
public float m12 -
m20
public float m20 -
m21
public float m21 -
m22
public float m22
-
-
Constructor Details
-
Matrix3f
public Matrix3f() -
Matrix3f
-
Matrix3f
-
Matrix3f
public Matrix3f(float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9) -
Matrix3f
public Matrix3f(java.nio.FloatBuffer floatBuffer) -
Matrix3f
-
-
Method Details
-
m00
public float m00() -
m01
public float m01() -
m02
public float m02() -
m10
public float m10() -
m11
public float m11() -
m12
public float m12() -
m20
public float m20() -
m21
public float m21() -
m22
public float m22() -
m00
-
m01
-
m02
-
m10
-
m11
-
m12
-
m20
-
m21
-
m22
-
set
-
set
-
set
-
set
-
set
-
set
-
mul
-
mul
-
set
public Matrix3f set(float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9) -
set
-
set
-
determinant
public float determinant()- Specified by:
determinantin interfaceMatrix3fc
-
invert
-
invert
-
transpose
-
transpose
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(java.text.NumberFormat numberFormat) -
get
-
get
-
getRotation
- Specified by:
getRotationin interfaceMatrix3fc
-
getUnnormalizedRotation
- Specified by:
getUnnormalizedRotationin interfaceMatrix3fc
-
getNormalizedRotation
- Specified by:
getNormalizedRotationin interfaceMatrix3fc
-
getUnnormalizedRotation
- Specified by:
getUnnormalizedRotationin interfaceMatrix3fc
-
getNormalizedRotation
- Specified by:
getNormalizedRotationin interfaceMatrix3fc
-
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) -
getTransposed
public java.nio.FloatBuffer getTransposed(java.nio.FloatBuffer floatBuffer)- Specified by:
getTransposedin interfaceMatrix3fc
-
getTransposed
public java.nio.FloatBuffer getTransposed(int int1, java.nio.FloatBuffer floatBuffer)- Specified by:
getTransposedin interfaceMatrix3fc
-
getTransposed
public java.nio.ByteBuffer getTransposed(java.nio.ByteBuffer byteBuffer)- Specified by:
getTransposedin interfaceMatrix3fc
-
getTransposed
public java.nio.ByteBuffer getTransposed(int int1, java.nio.ByteBuffer byteBuffer)- Specified by:
getTransposedin interfaceMatrix3fc
-
get
public float[] get(float[] floatArray, int int1) -
get
public float[] get(float[] floatArray) -
set
-
set
-
zero
-
identity
-
scale
-
scale
-
scale
-
scale
-
scale
-
scale
-
scaleLocal
- Specified by:
scaleLocalin interfaceMatrix3fc
-
scaleLocal
-
scaling
-
scaling
-
scaling
-
rotation
-
rotation
-
rotation
-
rotationX
-
rotationY
-
rotationZ
-
rotationXYZ
-
rotationZYX
-
rotationYXZ
-
rotation
-
transform
-
transform
-
transform
-
writeExternal
public void writeExternal(java.io.ObjectOutput objectOutput) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput objectInput) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
rotateX
-
rotateX
-
rotateY
-
rotateY
-
rotateZ
-
rotateZ
-
rotateXYZ
-
rotateXYZ
-
rotateXYZ
-
rotateZYX
-
rotateZYX
-
rotateZYX
-
rotateYXZ
-
rotateYXZ
-
rotateYXZ
-
rotate
-
rotate
-
rotateLocal
public Matrix3f rotateLocal(float float1, float float2, float float3, float float4, Matrix3f matrix3f)- Specified by:
rotateLocalin interfaceMatrix3fc
-
rotateLocal
-
rotate
-
rotate
-
rotateLocal
- Specified by:
rotateLocalin interfaceMatrix3fc
-
rotateLocal
-
rotate
-
rotate
-
rotate
-
rotate
-
lookAlong
-
lookAlong
-
lookAlong
-
lookAlong
public Matrix3f lookAlong(float float1, float float2, float float3, float float4, float float5, float float6) -
setLookAlong
-
setLookAlong
public Matrix3f setLookAlong(float float1, float float2, float float3, float float4, float float5, float float6) -
getRow
-
setRow
- Throws:
java.lang.IndexOutOfBoundsException
-
getColumn
-
setColumn
public Matrix3f setColumn(int int1, Vector3fc vector3fc) throws java.lang.IndexOutOfBoundsException- Throws:
java.lang.IndexOutOfBoundsException
-
normal
-
normal
-
getScale
-
positiveZ
-
normalizedPositiveZ
- Specified by:
normalizedPositiveZin interfaceMatrix3fc
-
positiveX
-
normalizedPositiveX
- Specified by:
normalizedPositiveXin interfaceMatrix3fc
-
positiveY
-
normalizedPositiveY
- Specified by:
normalizedPositiveYin interfaceMatrix3fc
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)- Overrides:
equalsin classjava.lang.Object
-
swap
-
add
-
add
-
sub
-
sub
-
mulComponentWise
-
mulComponentWise
- Specified by:
mulComponentWisein interfaceMatrix3fc
-
setSkewSymmetric
-
lerp
-
lerp
-
rotateTowards
- Specified by:
rotateTowardsin interfaceMatrix3fc
-
rotateTowards
-
rotateTowards
public Matrix3f rotateTowards(float float1, float float2, float float3, float float4, float float5, float float6) -
rotateTowards
public Matrix3f rotateTowards(float float1, float float2, float float3, float float4, float float5, float float6, Matrix3f matrix3f)- Specified by:
rotateTowardsin interfaceMatrix3fc
-
rotationTowards
-
rotationTowards
public Matrix3f rotationTowards(float float1, float float2, float float3, float float4, float float5, float float6) -
getEulerAnglesZYX
- Specified by:
getEulerAnglesZYXin interfaceMatrix3fc
-
toImmutable
-