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 Matrix2f
add(Matrix2fc matrix2fc)
Matrix2f
add(Matrix2fc matrix2fc, Matrix2f matrix2f)
float
determinant()
boolean
equals(java.lang.Object object)
boolean
equals(Matrix2fc matrix2fc, float float1)
float[]
get(float[] floatArray)
float[]
get(float[] floatArray, int int1)
float
get(int int1, int int2)
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)
Matrix2f
get(Matrix2f matrix2f)
Matrix3f
get(Matrix3f matrix3f)
Matrix3x2f
get(Matrix3x2f matrix3x2f)
Vector2f
getColumn(int int1, Vector2f vector2f)
float
getRotation()
Vector2f
getRow(int int1, Vector2f vector2f)
Vector2f
getScale(Vector2f vector2f)
Matrix2fc
getToAddress(long long1)
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)
int
hashCode()
Matrix2f
identity()
Matrix2f
invert()
Matrix2f
invert(Matrix2f matrix2f)
boolean
isFinite()
Matrix2f
lerp(Matrix2fc matrix2fc, float float1)
Matrix2f
lerp(Matrix2fc matrix2fc, float float1, Matrix2f matrix2f)
float
m00()
Matrix2f
m00(float float1)
float
m01()
Matrix2f
m01(float float1)
float
m10()
Matrix2f
m10(float float1)
float
m11()
Matrix2f
m11(float float1)
Matrix2f
mul(Matrix2fc matrix2fc)
Matrix2f
mul(Matrix2fc matrix2fc, Matrix2f matrix2f)
Matrix2f
mulComponentWise(Matrix2fc matrix2fc)
Matrix2f
mulComponentWise(Matrix2fc matrix2fc, Matrix2f matrix2f)
Matrix2f
mulLocal(Matrix2fc matrix2fc)
Matrix2f
mulLocal(Matrix2fc matrix2fc, Matrix2f matrix2f)
Matrix2f
normal()
Matrix2f
normal(Matrix2f matrix2f)
Vector2f
normalizedPositiveX(Vector2f vector2f)
Vector2f
normalizedPositiveY(Vector2f vector2f)
Vector2f
positiveX(Vector2f vector2f)
Vector2f
positiveY(Vector2f vector2f)
void
readExternal(java.io.ObjectInput objectInput)
Matrix2f
rotate(float float1)
Matrix2f
rotate(float float1, Matrix2f matrix2f)
Matrix2f
rotateLocal(float float1)
Matrix2f
rotateLocal(float float1, Matrix2f matrix2f)
Matrix2f
rotation(float float1)
Matrix2f
scale(float float1)
Matrix2f
scale(float float1, float float2)
Matrix2f
scale(float float1, float float2, Matrix2f matrix2f)
Matrix2f
scale(float float1, Matrix2f matrix2f)
Matrix2f
scale(Vector2fc vector2fc)
Matrix2f
scale(Vector2fc vector2fc, Matrix2f matrix2f)
Matrix2f
scaleLocal(float float1, float float2)
Matrix2f
scaleLocal(float float1, float float2, Matrix2f matrix2f)
Matrix2f
scaling(float float1)
Matrix2f
scaling(float float1, float float2)
Matrix2f
scaling(Vector2fc vector2fc)
Matrix2f
set(float[] floatArray)
Matrix2f
set(float float1, float float2, float float3, float float4)
Matrix2f
set(int int1, int int2, float float1)
Matrix2f
set(java.nio.ByteBuffer byteBuffer)
Matrix2f
set(java.nio.FloatBuffer floatBuffer)
Matrix2f
set(Matrix2fc matrix2fc)
Matrix2f
set(Matrix3fc matrix3fc)
Matrix2f
set(Matrix3x2fc matrix3x2fc)
Matrix2f
set(Vector2fc vector2fc, Vector2fc vector2fc2)
Matrix2f
setColumn(int int1, float float1, float float2)
Matrix2f
setColumn(int int1, Vector2fc vector2fc)
Matrix2f
setFromAddress(long long1)
Matrix2f
setRow(int int1, float float1, float float2)
Matrix2f
setRow(int int1, Vector2fc vector2fc)
Matrix2f
sub(Matrix2fc matrix2fc)
Matrix2f
sub(Matrix2fc matrix2fc, Matrix2f matrix2f)
Matrix2f
swap(Matrix2f matrix2f)
java.lang.String
toString()
java.lang.String
toString(java.text.NumberFormat numberFormat)
Vector2f
transform(float float1, float float2, Vector2f vector2f)
Vector2f
transform(Vector2f vector2f)
Vector2f
transform(Vector2fc vector2fc, Vector2f vector2f)
Vector2f
transformTranspose(float float1, float float2, Vector2f vector2f)
Vector2f
transformTranspose(Vector2f vector2f)
Vector2f
transformTranspose(Vector2fc vector2fc, Vector2f vector2f)
Matrix2f
transpose()
Matrix2f
transpose(Matrix2f matrix2f)
void
writeExternal(java.io.ObjectOutput objectOutput)
Matrix2f
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 -
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:
determinant
in interfaceMatrix2fc
-
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
-
get
-
getRotation
public float getRotation()- Specified by:
getRotation
in 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:
getTransposed
in interfaceMatrix2fc
-
getTransposed
public java.nio.FloatBuffer getTransposed(int int1, java.nio.FloatBuffer floatBuffer)- Specified by:
getTransposed
in interfaceMatrix2fc
-
getTransposed
public java.nio.ByteBuffer getTransposed(java.nio.ByteBuffer byteBuffer)- Specified by:
getTransposed
in interfaceMatrix2fc
-
getTransposed
public java.nio.ByteBuffer getTransposed(int int1, java.nio.ByteBuffer byteBuffer)- Specified by:
getTransposed
in interfaceMatrix2fc
-
getToAddress
- Specified by:
getToAddress
in 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:
scaleLocal
in interfaceMatrix2fc
-
scaleLocal
-
scaling
-
scaling
-
scaling
-
rotation
-
transform
-
transform
-
transform
-
transformTranspose
- Specified by:
transformTranspose
in interfaceMatrix2fc
-
transformTranspose
- Specified by:
transformTranspose
in interfaceMatrix2fc
-
transformTranspose
- Specified by:
transformTranspose
in interfaceMatrix2fc
-
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- Specified by:
readExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
-
rotate
-
rotate
-
rotateLocal
-
rotateLocal
- Specified by:
rotateLocal
in 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:
normalizedPositiveX
in interfaceMatrix2fc
-
positiveY
-
normalizedPositiveY
- Specified by:
normalizedPositiveY
in interfaceMatrix2fc
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)- Overrides:
equals
in classjava.lang.Object
-
equals
-
swap
-
add
-
add
-
sub
-
sub
-
mulComponentWise
-
mulComponentWise
- Specified by:
mulComponentWise
in interfaceMatrix2fc
-
lerp
-
lerp
-
isFinite
public boolean isFinite()
-