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 Matrix3f
add(Matrix3fc matrix3fc)
Matrix3f
add(Matrix3fc matrix3fc, Matrix3f matrix3f)
float
determinant()
boolean
equals(java.lang.Object object)
float[]
get(float[] floatArray)
float[]
get(float[] floatArray, int int1)
java.nio.ByteBuffer
get(int int1, java.nio.ByteBuffer byteBuffer)
java.nio.FloatBuffer
get(int int1, java.nio.FloatBuffer floatBuffer)
java.nio.ByteBuffer
get(java.nio.ByteBuffer byteBuffer)
java.nio.FloatBuffer
get(java.nio.FloatBuffer floatBuffer)
Matrix3f
get(Matrix3f matrix3f)
Matrix4f
get(Matrix4f matrix4f)
Vector3f
getColumn(int int1, Vector3f vector3f)
Vector3f
getEulerAnglesZYX(Vector3f vector3f)
Quaterniond
getNormalizedRotation(Quaterniond quaterniond)
Quaternionf
getNormalizedRotation(Quaternionf quaternionf)
AxisAngle4f
getRotation(AxisAngle4f axisAngle4f)
Vector3f
getRow(int int1, Vector3f vector3f)
Vector3f
getScale(Vector3f vector3f)
java.nio.ByteBuffer
getTransposed(int int1, java.nio.ByteBuffer byteBuffer)
java.nio.FloatBuffer
getTransposed(int int1, java.nio.FloatBuffer floatBuffer)
java.nio.ByteBuffer
getTransposed(java.nio.ByteBuffer byteBuffer)
java.nio.FloatBuffer
getTransposed(java.nio.FloatBuffer floatBuffer)
Quaterniond
getUnnormalizedRotation(Quaterniond quaterniond)
Quaternionf
getUnnormalizedRotation(Quaternionf quaternionf)
int
hashCode()
Matrix3f
identity()
Matrix3f
invert()
Matrix3f
invert(Matrix3f matrix3f)
Matrix3f
lerp(Matrix3fc matrix3fc, float float1)
Matrix3f
lerp(Matrix3fc matrix3fc, float float1, Matrix3f matrix3f)
Matrix3f
lookAlong(float float1, float float2, float float3, float float4, float float5, float float6)
Matrix3f
lookAlong(float float1, float float2, float float3, float float4, float float5, float float6, Matrix3f matrix3f)
Matrix3f
lookAlong(Vector3fc vector3fc, Vector3fc vector3fc2)
Matrix3f
lookAlong(Vector3fc vector3fc, Vector3fc vector3fc2, Matrix3f matrix3f)
float
m00()
Matrix3f
m00(float float1)
float
m01()
Matrix3f
m01(float float1)
float
m02()
Matrix3f
m02(float float1)
float
m10()
Matrix3f
m10(float float1)
float
m11()
Matrix3f
m11(float float1)
float
m12()
Matrix3f
m12(float float1)
float
m20()
Matrix3f
m20(float float1)
float
m21()
Matrix3f
m21(float float1)
float
m22()
Matrix3f
m22(float float1)
Matrix3f
mul(Matrix3fc matrix3fc)
Matrix3f
mul(Matrix3fc matrix3fc, Matrix3f matrix3f)
Matrix3f
mulComponentWise(Matrix3fc matrix3fc)
Matrix3f
mulComponentWise(Matrix3fc matrix3fc, Matrix3f matrix3f)
Matrix3f
normal()
Matrix3f
normal(Matrix3f matrix3f)
Vector3f
normalizedPositiveX(Vector3f vector3f)
Vector3f
normalizedPositiveY(Vector3f vector3f)
Vector3f
normalizedPositiveZ(Vector3f vector3f)
Vector3f
positiveX(Vector3f vector3f)
Vector3f
positiveY(Vector3f vector3f)
Vector3f
positiveZ(Vector3f vector3f)
void
readExternal(java.io.ObjectInput objectInput)
Matrix3f
rotate(float float1, float float2, float float3, float float4)
Matrix3f
rotate(float float1, float float2, float float3, float float4, Matrix3f matrix3f)
Matrix3f
rotate(float float1, Vector3fc vector3fc)
Matrix3f
rotate(float float1, Vector3fc vector3fc, Matrix3f matrix3f)
Matrix3f
rotate(AxisAngle4f axisAngle4f)
Matrix3f
rotate(AxisAngle4f axisAngle4f, Matrix3f matrix3f)
Matrix3f
rotate(Quaternionfc quaternionfc)
Matrix3f
rotate(Quaternionfc quaternionfc, Matrix3f matrix3f)
Matrix3f
rotateLocal(float float1, float float2, float float3, float float4)
Matrix3f
rotateLocal(float float1, float float2, float float3, float float4, Matrix3f matrix3f)
Matrix3f
rotateLocal(Quaternionfc quaternionfc)
Matrix3f
rotateLocal(Quaternionfc quaternionfc, Matrix3f matrix3f)
Matrix3f
rotateTowards(float float1, float float2, float float3, float float4, float float5, float float6)
Matrix3f
rotateTowards(float float1, float float2, float float3, float float4, float float5, float float6, Matrix3f matrix3f)
Matrix3f
rotateTowards(Vector3fc vector3fc, Vector3fc vector3fc2)
Matrix3f
rotateTowards(Vector3fc vector3fc, Vector3fc vector3fc2, Matrix3f matrix3f)
Matrix3f
rotateX(float float1)
Matrix3f
rotateX(float float1, Matrix3f matrix3f)
Matrix3f
rotateXYZ(float float1, float float2, float float3)
Matrix3f
rotateXYZ(float float1, float float2, float float3, Matrix3f matrix3f)
Matrix3f
rotateXYZ(Vector3f vector3f)
Matrix3f
rotateY(float float1)
Matrix3f
rotateY(float float1, Matrix3f matrix3f)
Matrix3f
rotateYXZ(float float1, float float2, float float3)
Matrix3f
rotateYXZ(float float1, float float2, float float3, Matrix3f matrix3f)
Matrix3f
rotateYXZ(Vector3f vector3f)
Matrix3f
rotateZ(float float1)
Matrix3f
rotateZ(float float1, Matrix3f matrix3f)
Matrix3f
rotateZYX(float float1, float float2, float float3)
Matrix3f
rotateZYX(float float1, float float2, float float3, Matrix3f matrix3f)
Matrix3f
rotateZYX(Vector3f vector3f)
Matrix3f
rotation(float float1, float float2, float float3, float float4)
Matrix3f
rotation(float float1, Vector3fc vector3fc)
Matrix3f
rotation(AxisAngle4f axisAngle4f)
Matrix3f
rotation(Quaternionfc quaternionfc)
Matrix3f
rotationTowards(float float1, float float2, float float3, float float4, float float5, float float6)
Matrix3f
rotationTowards(Vector3fc vector3fc, Vector3fc vector3fc2)
Matrix3f
rotationX(float float1)
Matrix3f
rotationXYZ(float float1, float float2, float float3)
Matrix3f
rotationY(float float1)
Matrix3f
rotationYXZ(float float1, float float2, float float3)
Matrix3f
rotationZ(float float1)
Matrix3f
rotationZYX(float float1, float float2, float float3)
Matrix3f
scale(float float1)
Matrix3f
scale(float float1, float float2, float float3)
Matrix3f
scale(float float1, float float2, float float3, Matrix3f matrix3f)
Matrix3f
scale(float float1, Matrix3f matrix3f)
Matrix3f
scale(Vector3fc vector3fc)
Matrix3f
scale(Vector3fc vector3fc, Matrix3f matrix3f)
Matrix3f
scaleLocal(float float1, float float2, float float3)
Matrix3f
scaleLocal(float float1, float float2, float float3, Matrix3f matrix3f)
Matrix3f
scaling(float float1)
Matrix3f
scaling(float float1, float float2, float float3)
Matrix3f
scaling(Vector3fc vector3fc)
Matrix3f
set(float[] floatArray)
Matrix3f
set(float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9)
Matrix3f
set(java.nio.ByteBuffer byteBuffer)
Matrix3f
set(java.nio.FloatBuffer floatBuffer)
Matrix3f
set(AxisAngle4d axisAngle4d)
Matrix3f
set(AxisAngle4f axisAngle4f)
Matrix3f
set(Matrix3fc matrix3fc)
Matrix3f
set(Matrix4fc matrix4fc)
Matrix3f
set(Quaterniondc quaterniondc)
Matrix3f
set(Quaternionfc quaternionfc)
Matrix3f
set(Vector3fc vector3fc, Vector3fc vector3fc2, Vector3fc vector3fc3)
Matrix3f
setColumn(int int1, Vector3fc vector3fc)
Matrix3f
setLookAlong(float float1, float float2, float float3, float float4, float float5, float float6)
Matrix3f
setLookAlong(Vector3fc vector3fc, Vector3fc vector3fc2)
Matrix3f
setRow(int int1, Vector3fc vector3fc)
Matrix3f
setSkewSymmetric(float float1, float float2, float float3)
Matrix3f
sub(Matrix3fc matrix3fc)
Matrix3f
sub(Matrix3fc matrix3fc, Matrix3f matrix3f)
Matrix3f
swap(Matrix3f matrix3f)
Matrix3fc
toImmutable()
java.lang.String
toString()
java.lang.String
toString(java.text.NumberFormat numberFormat)
Vector3f
transform(float float1, float float2, float float3, Vector3f vector3f)
Vector3f
transform(Vector3f vector3f)
Vector3f
transform(Vector3fc vector3fc, Vector3f vector3f)
Matrix3f
transpose()
Matrix3f
transpose(Matrix3f matrix3f)
void
writeExternal(java.io.ObjectOutput objectOutput)
Matrix3f
zero()
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:
determinant
in interfaceMatrix3fc
-
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
-
get
-
getRotation
- Specified by:
getRotation
in interfaceMatrix3fc
-
getUnnormalizedRotation
- Specified by:
getUnnormalizedRotation
in interfaceMatrix3fc
-
getNormalizedRotation
- Specified by:
getNormalizedRotation
in interfaceMatrix3fc
-
getUnnormalizedRotation
- Specified by:
getUnnormalizedRotation
in interfaceMatrix3fc
-
getNormalizedRotation
- Specified by:
getNormalizedRotation
in 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:
getTransposed
in interfaceMatrix3fc
-
getTransposed
public java.nio.FloatBuffer getTransposed(int int1, java.nio.FloatBuffer floatBuffer)- Specified by:
getTransposed
in interfaceMatrix3fc
-
getTransposed
public java.nio.ByteBuffer getTransposed(java.nio.ByteBuffer byteBuffer)- Specified by:
getTransposed
in interfaceMatrix3fc
-
getTransposed
public java.nio.ByteBuffer getTransposed(int int1, java.nio.ByteBuffer byteBuffer)- Specified by:
getTransposed
in 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:
scaleLocal
in 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:
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
-
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:
rotateLocal
in interfaceMatrix3fc
-
rotateLocal
-
rotate
-
rotate
-
rotateLocal
- Specified by:
rotateLocal
in 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:
normalizedPositiveZ
in interfaceMatrix3fc
-
positiveX
-
normalizedPositiveX
- Specified by:
normalizedPositiveX
in interfaceMatrix3fc
-
positiveY
-
normalizedPositiveY
- Specified by:
normalizedPositiveY
in interfaceMatrix3fc
-
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 interfaceMatrix3fc
-
setSkewSymmetric
-
lerp
-
lerp
-
rotateTowards
- Specified by:
rotateTowards
in 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:
rotateTowards
in interfaceMatrix3fc
-
rotationTowards
-
rotationTowards
public Matrix3f rotationTowards(float float1, float float2, float float3, float float4, float float5, float float6) -
getEulerAnglesZYX
- Specified by:
getEulerAnglesZYX
in interfaceMatrix3fc
-
toImmutable
-