Package org.joml
Class Matrix2f
java.lang.Object
org.joml.Matrix2f
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,Matrix2fc
public class Matrix2f extends java.lang.Object implements java.io.Externalizable, Matrix2fc
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Matrix2fadd(Matrix2fc matrix2fc)Matrix2fadd(Matrix2fc matrix2fc, Matrix2f matrix2f)floatdeterminant()booleanequals(java.lang.Object object)booleanequals(Matrix2fc matrix2fc, float float1)float[]get(float[] floatArray)float[]get(float[] floatArray, int int1)floatget(int int1, int int2)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)Matrix2fget(Matrix2f matrix2f)Matrix3fget(Matrix3f matrix3f)Matrix3x2fget(Matrix3x2f matrix3x2f)Vector2fgetColumn(int int1, Vector2f vector2f)floatgetRotation()Vector2fgetRow(int int1, Vector2f vector2f)Vector2fgetScale(Vector2f vector2f)Matrix2fcgetToAddress(long long1)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)inthashCode()Matrix2fidentity()Matrix2finvert()Matrix2finvert(Matrix2f matrix2f)booleanisFinite()Matrix2flerp(Matrix2fc matrix2fc, float float1)Matrix2flerp(Matrix2fc matrix2fc, float float1, Matrix2f matrix2f)floatm00()Matrix2fm00(float float1)floatm01()Matrix2fm01(float float1)floatm10()Matrix2fm10(float float1)floatm11()Matrix2fm11(float float1)Matrix2fmul(Matrix2fc matrix2fc)Matrix2fmul(Matrix2fc matrix2fc, Matrix2f matrix2f)Matrix2fmulComponentWise(Matrix2fc matrix2fc)Matrix2fmulComponentWise(Matrix2fc matrix2fc, Matrix2f matrix2f)Matrix2fmulLocal(Matrix2fc matrix2fc)Matrix2fmulLocal(Matrix2fc matrix2fc, Matrix2f matrix2f)Matrix2fnormal()Matrix2fnormal(Matrix2f matrix2f)Vector2fnormalizedPositiveX(Vector2f vector2f)Vector2fnormalizedPositiveY(Vector2f vector2f)Vector2fpositiveX(Vector2f vector2f)Vector2fpositiveY(Vector2f vector2f)voidreadExternal(java.io.ObjectInput objectInput)Matrix2frotate(float float1)Matrix2frotate(float float1, Matrix2f matrix2f)Matrix2frotateLocal(float float1)Matrix2frotateLocal(float float1, Matrix2f matrix2f)Matrix2frotation(float float1)Matrix2fscale(float float1)Matrix2fscale(float float1, float float2)Matrix2fscale(float float1, float float2, Matrix2f matrix2f)Matrix2fscale(float float1, Matrix2f matrix2f)Matrix2fscale(Vector2fc vector2fc)Matrix2fscale(Vector2fc vector2fc, Matrix2f matrix2f)Matrix2fscaleLocal(float float1, float float2)Matrix2fscaleLocal(float float1, float float2, Matrix2f matrix2f)Matrix2fscaling(float float1)Matrix2fscaling(float float1, float float2)Matrix2fscaling(Vector2fc vector2fc)Matrix2fset(float[] floatArray)Matrix2fset(float float1, float float2, float float3, float float4)Matrix2fset(int int1, int int2, float float1)Matrix2fset(java.nio.ByteBuffer byteBuffer)Matrix2fset(java.nio.FloatBuffer floatBuffer)Matrix2fset(Matrix2fc matrix2fc)Matrix2fset(Matrix3fc matrix3fc)Matrix2fset(Matrix3x2fc matrix3x2fc)Matrix2fset(Vector2fc vector2fc, Vector2fc vector2fc2)Matrix2fsetColumn(int int1, float float1, float float2)Matrix2fsetColumn(int int1, Vector2fc vector2fc)Matrix2fsetFromAddress(long long1)Matrix2fsetRow(int int1, float float1, float float2)Matrix2fsetRow(int int1, Vector2fc vector2fc)Matrix2fsub(Matrix2fc matrix2fc)Matrix2fsub(Matrix2fc matrix2fc, Matrix2f matrix2f)Matrix2fswap(Matrix2f matrix2f)java.lang.StringtoString()java.lang.StringtoString(java.text.NumberFormat numberFormat)Vector2ftransform(float float1, float float2, Vector2f vector2f)Vector2ftransform(Vector2f vector2f)Vector2ftransform(Vector2fc vector2fc, Vector2f vector2f)Vector2ftransformTranspose(float float1, float float2, Vector2f vector2f)Vector2ftransformTranspose(Vector2f vector2f)Vector2ftransformTranspose(Vector2fc vector2fc, Vector2f vector2f)Matrix2ftranspose()Matrix2ftranspose(Matrix2f matrix2f)voidwriteExternal(java.io.ObjectOutput objectOutput)Matrix2fzero()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 -
m10
public float m10 -
m11
public float m11
-
-
Constructor Details
-
Matrix2f
public Matrix2f() -
Matrix2f
-
Matrix2f
-
Matrix2f
public Matrix2f(float float1, float float2, float float3, float float4) -
Matrix2f
public Matrix2f(java.nio.FloatBuffer floatBuffer) -
Matrix2f
-
-
Method Details
-
m00
public float m00() -
m01
public float m01() -
m10
public float m10() -
m11
public float m11() -
m00
-
m01
-
m10
-
m11
-
set
-
set
-
set
-
mul
-
mul
-
mulLocal
-
mulLocal
-
set
-
set
-
set
-
determinant
public float determinant()- Specified by:
determinantin interfaceMatrix2fc
-
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
-
get
-
getRotation
public float getRotation()- Specified by:
getRotationin interfaceMatrix2fc
-
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 interfaceMatrix2fc
-
getTransposed
public java.nio.FloatBuffer getTransposed(int int1, java.nio.FloatBuffer floatBuffer)- Specified by:
getTransposedin interfaceMatrix2fc
-
getTransposed
public java.nio.ByteBuffer getTransposed(java.nio.ByteBuffer byteBuffer)- Specified by:
getTransposedin interfaceMatrix2fc
-
getTransposed
public java.nio.ByteBuffer getTransposed(int int1, java.nio.ByteBuffer byteBuffer)- Specified by:
getTransposedin interfaceMatrix2fc
-
getToAddress
- Specified by:
getToAddressin interfaceMatrix2fc
-
get
public float[] get(float[] floatArray, int int1) -
get
public float[] get(float[] floatArray) -
set
-
set
-
setFromAddress
-
zero
-
identity
-
scale
-
scale
-
scale
-
scale
-
scale
-
scale
-
scaleLocal
- Specified by:
scaleLocalin interfaceMatrix2fc
-
scaleLocal
-
scaling
-
scaling
-
scaling
-
rotation
-
transform
-
transform
-
transform
-
transformTranspose
- Specified by:
transformTransposein interfaceMatrix2fc
-
transformTranspose
- Specified by:
transformTransposein interfaceMatrix2fc
-
transformTranspose
- Specified by:
transformTransposein interfaceMatrix2fc
-
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- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
rotate
-
rotate
-
rotateLocal
-
rotateLocal
- Specified by:
rotateLocalin interfaceMatrix2fc
-
getRow
-
setRow
- Throws:
java.lang.IndexOutOfBoundsException
-
setRow
public Matrix2f setRow(int int1, float float1, float float2) throws java.lang.IndexOutOfBoundsException- Throws:
java.lang.IndexOutOfBoundsException
-
getColumn
-
setColumn
public Matrix2f setColumn(int int1, Vector2fc vector2fc) throws java.lang.IndexOutOfBoundsException- Throws:
java.lang.IndexOutOfBoundsException
-
setColumn
public Matrix2f setColumn(int int1, float float1, float float2) throws java.lang.IndexOutOfBoundsException- Throws:
java.lang.IndexOutOfBoundsException
-
get
public float get(int int1, int int2) -
set
-
normal
-
normal
-
getScale
-
positiveX
-
normalizedPositiveX
- Specified by:
normalizedPositiveXin interfaceMatrix2fc
-
positiveY
-
normalizedPositiveY
- Specified by:
normalizedPositiveYin interfaceMatrix2fc
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)- Overrides:
equalsin classjava.lang.Object
-
equals
-
swap
-
add
-
add
-
sub
-
sub
-
mulComponentWise
-
mulComponentWise
- Specified by:
mulComponentWisein interfaceMatrix2fc
-
lerp
-
lerp
-
isFinite
public boolean isFinite()
-