Package org.joml
Class Matrix2f
java.lang.Object
org.joml.Matrix2f
- All Implemented Interfaces:
Externalizable
,Serializable
,Matrix2fc
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
boolean
boolean
float[]
get
(float[] floatArray) float[]
get
(float[] floatArray, int int1) float
get
(int int1, int int2) get
(int int1, ByteBuffer byteBuffer) get
(int int1, FloatBuffer floatBuffer) get
(ByteBuffer byteBuffer) get
(FloatBuffer floatBuffer) get
(Matrix3x2f matrix3x2f) float
getToAddress
(long long1) getTransposed
(int int1, ByteBuffer byteBuffer) getTransposed
(int int1, FloatBuffer floatBuffer) getTransposed
(ByteBuffer byteBuffer) getTransposed
(FloatBuffer floatBuffer) int
hashCode()
identity()
invert()
boolean
isFinite()
float
m00()
m00
(float float1) float
m01()
m01
(float float1) float
m10()
m10
(float float1) float
m11()
m11
(float float1) mulComponentWise
(Matrix2fc matrix2fc) mulComponentWise
(Matrix2fc matrix2fc, Matrix2f matrix2f) normal()
normalizedPositiveX
(Vector2f vector2f) normalizedPositiveY
(Vector2f vector2f) void
readExternal
(ObjectInput objectInput) rotate
(float float1) rotateLocal
(float float1) rotateLocal
(float float1, Matrix2f matrix2f) rotation
(float float1) scale
(float float1) scale
(float float1, float float2) scaleLocal
(float float1, float float2) scaleLocal
(float float1, float float2, Matrix2f matrix2f) scaling
(float float1) scaling
(float float1, float float2) set
(float[] floatArray) set
(float float1, float float2, float float3, float float4) set
(int int1, int int2, float float1) set
(ByteBuffer byteBuffer) set
(FloatBuffer floatBuffer) set
(Matrix3x2fc matrix3x2fc) setColumn
(int int1, float float1, float float2) setFromAddress
(long long1) setRow
(int int1, float float1, float float2) toString()
toString
(NumberFormat numberFormat) transformTranspose
(float float1, float float2, Vector2f vector2f) transformTranspose
(Vector2f vector2f) transformTranspose
(Vector2fc vector2fc, Vector2f vector2f) void
writeExternal
(ObjectOutput objectOutput) zero()
-
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
-
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
-
toString
-
get
-
get
-
get
-
getRotation
public float getRotation()- Specified by:
getRotation
in interfaceMatrix2fc
-
get
-
get
-
get
-
get
-
getTransposed
- Specified by:
getTransposed
in interfaceMatrix2fc
-
getTransposed
- Specified by:
getTransposed
in interfaceMatrix2fc
-
getTransposed
- Specified by:
getTransposed
in interfaceMatrix2fc
-
getTransposed
- 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
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
-
rotate
-
rotate
-
rotateLocal
-
rotateLocal
- Specified by:
rotateLocal
in interfaceMatrix2fc
-
getRow
- Specified by:
getRow
in interfaceMatrix2fc
- Throws:
IndexOutOfBoundsException
-
setRow
- Throws:
IndexOutOfBoundsException
-
setRow
- Throws:
IndexOutOfBoundsException
-
getColumn
- Specified by:
getColumn
in interfaceMatrix2fc
- Throws:
IndexOutOfBoundsException
-
setColumn
- Throws:
IndexOutOfBoundsException
-
setColumn
- Throws:
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() -
equals
-
equals
-
swap
-
add
-
add
-
sub
-
sub
-
mulComponentWise
-
mulComponentWise
- Specified by:
mulComponentWise
in interfaceMatrix2fc
-
lerp
-
lerp
-
isFinite
public boolean isFinite()
-