Package org.joml
Class Matrix2d
java.lang.Object
org.joml.Matrix2d
- All Implemented Interfaces:
Externalizable,Serializable,Matrix2dc
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMatrix2d()Matrix2d(double double1, double double2, double double3, double double4) Matrix2d(DoubleBuffer doubleBuffer) -
Method Summary
Modifier and TypeMethodDescriptiondoublebooleanbooleandouble[]get(double[] doubleArray) double[]get(double[] doubleArray, int int1) doubleget(int int1, int int2) get(int int1, ByteBuffer byteBuffer) get(int int1, DoubleBuffer doubleBuffer) get(ByteBuffer byteBuffer) get(DoubleBuffer doubleBuffer) get(Matrix3x2d matrix3x2d) doublegetToAddress(long long1) getTransposed(int int1, ByteBuffer byteBuffer) getTransposed(int int1, DoubleBuffer doubleBuffer) getTransposed(ByteBuffer byteBuffer) getTransposed(DoubleBuffer doubleBuffer) inthashCode()identity()invert()booleanisFinite()doublem00()m00(double double1) doublem01()m01(double double1) doublem10()m10(double double1) doublem11()m11(double double1) mulComponentWise(Matrix2dc matrix2dc) mulComponentWise(Matrix2dc matrix2dc, Matrix2d matrix2d) normal()normalizedPositiveX(Vector2d vector2d) normalizedPositiveY(Vector2d vector2d) voidreadExternal(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) voidwriteExternal(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:
determinantin interfaceMatrix2dc
-
invert
-
invert
-
transpose
-
transpose
-
toString
-
toString
-
get
-
get
-
get
-
getRotation
public double getRotation()- Specified by:
getRotationin interfaceMatrix2dc
-
get
-
get
-
get
-
get
-
getTransposed
- Specified by:
getTransposedin interfaceMatrix2dc
-
getTransposed
- Specified by:
getTransposedin interfaceMatrix2dc
-
getTransposed
- Specified by:
getTransposedin interfaceMatrix2dc
-
getTransposed
- Specified by:
getTransposedin interfaceMatrix2dc
-
getToAddress
- Specified by:
getToAddressin 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:
scaleLocalin interfaceMatrix2dc
-
scaleLocal
-
scaling
-
scaling
-
scaling
-
rotation
-
transform
-
transform
-
transform
-
transformTranspose
- Specified by:
transformTransposein interfaceMatrix2dc
-
transformTranspose
- Specified by:
transformTransposein interfaceMatrix2dc
-
transformTranspose
- Specified by:
transformTransposein interfaceMatrix2dc
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOException
-
rotate
-
rotate
-
rotateLocal
-
rotateLocal
- Specified by:
rotateLocalin interfaceMatrix2dc
-
getRow
- Specified by:
getRowin interfaceMatrix2dc- Throws:
IndexOutOfBoundsException
-
setRow
- Throws:
IndexOutOfBoundsException
-
setRow
- Throws:
IndexOutOfBoundsException
-
getColumn
- Specified by:
getColumnin 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:
normalizedPositiveXin interfaceMatrix2dc
-
positiveY
-
normalizedPositiveY
- Specified by:
normalizedPositiveYin interfaceMatrix2dc
-
hashCode
public int hashCode() -
equals
-
equals
-
swap
-
add
-
add
-
sub
-
sub
-
mulComponentWise
-
mulComponentWise
- Specified by:
mulComponentWisein interfaceMatrix2dc
-
lerp
-
lerp
-
isFinite
public boolean isFinite()
-