Package org.joml
Class Matrix2d
java.lang.Object
org.joml.Matrix2d
- All Implemented Interfaces:
Externalizable
,Serializable
,Matrix2dc
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMatrix2d()
Matrix2d
(double double1, double double2, double double3, double double4) Matrix2d
(DoubleBuffer doubleBuffer) -
Method Summary
Modifier and TypeMethodDescriptiondouble
boolean
boolean
double[]
get
(double[] doubleArray) double[]
get
(double[] doubleArray, int int1) double
get
(int int1, int int2) get
(int int1, ByteBuffer byteBuffer) get
(int int1, DoubleBuffer doubleBuffer) get
(ByteBuffer byteBuffer) get
(DoubleBuffer doubleBuffer) get
(Matrix3x2d matrix3x2d) double
getToAddress
(long long1) getTransposed
(int int1, ByteBuffer byteBuffer) getTransposed
(int int1, DoubleBuffer doubleBuffer) getTransposed
(ByteBuffer byteBuffer) getTransposed
(DoubleBuffer doubleBuffer) int
hashCode()
identity()
invert()
boolean
isFinite()
double
m00()
m00
(double double1) double
m01()
m01
(double double1) double
m10()
m10
(double double1) double
m11()
m11
(double double1) mulComponentWise
(Matrix2dc matrix2dc) mulComponentWise
(Matrix2dc matrix2dc, Matrix2d matrix2d) normal()
normalizedPositiveX
(Vector2d vector2d) normalizedPositiveY
(Vector2d vector2d) void
readExternal
(ObjectInput objectInput) rotate
(double double1) rotateLocal
(double double1) rotateLocal
(double double1, Matrix2d matrix2d) rotation
(double double1) scale
(double double1) scale
(double double1, double double2) scaleLocal
(double double1, double double2) scaleLocal
(double double1, double double2, Matrix2d matrix2d) scaling
(double double1) scaling
(double double1, double double2) set
(double[] doubleArray) set
(double double1, double double2, double double3, double double4) set
(int int1, int int2, double double1) set
(ByteBuffer byteBuffer) set
(DoubleBuffer doubleBuffer) set
(Matrix3x2dc matrix3x2dc) set
(Matrix3x2fc matrix3x2fc) setColumn
(int int1, double double1, double double2) setFromAddress
(long long1) setRow
(int int1, double double1, double double2) toString()
toString
(NumberFormat numberFormat) transformTranspose
(double double1, double double2, Vector2d vector2d) transformTranspose
(Vector2d vector2d) transformTranspose
(Vector2dc vector2dc, Vector2d vector2d) void
writeExternal
(ObjectOutput objectOutput) zero()
-
Field Details
-
m00
public double m00 -
m01
public double m01 -
m10
public double m10 -
m11
public double m11
-
-
Constructor Details
-
Matrix2d
public Matrix2d() -
Matrix2d
-
Matrix2d
-
Matrix2d
-
Matrix2d
-
Matrix2d
public Matrix2d(double double1, double double2, double double3, double double4) -
Matrix2d
-
Matrix2d
-
-
Method Details
-
m00
public double m00() -
m01
public double m01() -
m10
public double m10() -
m11
public double m11() -
m00
-
m01
-
m10
-
m11
-
set
-
set
-
set
-
set
-
set
-
set
-
mul
-
mul
-
mul
-
mul
-
mulLocal
-
mulLocal
-
set
-
set
-
set
-
determinant
public double determinant()- Specified by:
determinant
in interfaceMatrix2dc
-
invert
-
invert
-
transpose
-
transpose
-
toString
-
toString
-
get
-
get
-
get
-
getRotation
public double getRotation()- Specified by:
getRotation
in interfaceMatrix2dc
-
get
-
get
-
get
-
get
-
getTransposed
- Specified by:
getTransposed
in interfaceMatrix2dc
-
getTransposed
- Specified by:
getTransposed
in interfaceMatrix2dc
-
getTransposed
- Specified by:
getTransposed
in interfaceMatrix2dc
-
getTransposed
- Specified by:
getTransposed
in interfaceMatrix2dc
-
getToAddress
- Specified by:
getToAddress
in interfaceMatrix2dc
-
get
public double[] get(double[] doubleArray, int int1) -
get
public double[] get(double[] doubleArray) -
set
-
set
-
setFromAddress
-
zero
-
identity
-
scale
-
scale
-
scale
-
scale
-
scale
-
scale
-
scaleLocal
- Specified by:
scaleLocal
in interfaceMatrix2dc
-
scaleLocal
-
scaling
-
scaling
-
scaling
-
rotation
-
transform
-
transform
-
transform
-
transformTranspose
- Specified by:
transformTranspose
in interfaceMatrix2dc
-
transformTranspose
- Specified by:
transformTranspose
in interfaceMatrix2dc
-
transformTranspose
- Specified by:
transformTranspose
in interfaceMatrix2dc
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
-
rotate
-
rotate
-
rotateLocal
-
rotateLocal
- Specified by:
rotateLocal
in interfaceMatrix2dc
-
getRow
- Specified by:
getRow
in interfaceMatrix2dc
- Throws:
IndexOutOfBoundsException
-
setRow
- Throws:
IndexOutOfBoundsException
-
setRow
- Throws:
IndexOutOfBoundsException
-
getColumn
- Specified by:
getColumn
in interfaceMatrix2dc
- Throws:
IndexOutOfBoundsException
-
setColumn
- Throws:
IndexOutOfBoundsException
-
setColumn
public Matrix2d setColumn(int int1, double double1, double double2) throws IndexOutOfBoundsException - Throws:
IndexOutOfBoundsException
-
get
public double get(int int1, int int2) -
set
-
normal
-
normal
-
getScale
-
positiveX
-
normalizedPositiveX
- Specified by:
normalizedPositiveX
in interfaceMatrix2dc
-
positiveY
-
normalizedPositiveY
- Specified by:
normalizedPositiveY
in interfaceMatrix2dc
-
hashCode
public int hashCode() -
equals
-
equals
-
swap
-
add
-
add
-
sub
-
sub
-
mulComponentWise
-
mulComponentWise
- Specified by:
mulComponentWise
in interfaceMatrix2dc
-
lerp
-
lerp
-
isFinite
public boolean isFinite()
-