Package org.joml
Class Matrix2d
java.lang.Object
org.joml.Matrix2d
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,Matrix2dc
public class Matrix2d extends java.lang.Object implements java.io.Externalizable, Matrix2dc
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Matrix2d()
Matrix2d(double double1, double double2, double double3, double double4)
Matrix2d(java.nio.DoubleBuffer doubleBuffer)
Matrix2d(Matrix2dc matrix2dc)
Matrix2d(Matrix2fc matrix2fc)
Matrix2d(Matrix3dc matrix3dc)
Matrix2d(Matrix3fc matrix3fc)
Matrix2d(Vector2dc vector2dc, Vector2dc vector2dc2)
-
Method Summary
Modifier and Type Method Description Matrix2d
add(Matrix2dc matrix2dc)
Matrix2d
add(Matrix2dc matrix2dc, Matrix2d matrix2d)
double
determinant()
boolean
equals(java.lang.Object object)
boolean
equals(Matrix2dc matrix2dc, double double1)
double[]
get(double[] doubleArray)
double[]
get(double[] doubleArray, int int1)
double
get(int int1, int int2)
java.nio.ByteBuffer
get(int int1, java.nio.ByteBuffer byteBuffer)
java.nio.DoubleBuffer
get(int int1, java.nio.DoubleBuffer doubleBuffer)
java.nio.ByteBuffer
get(java.nio.ByteBuffer byteBuffer)
java.nio.DoubleBuffer
get(java.nio.DoubleBuffer doubleBuffer)
Matrix2d
get(Matrix2d matrix2d)
Matrix3d
get(Matrix3d matrix3d)
Matrix3x2d
get(Matrix3x2d matrix3x2d)
Vector2d
getColumn(int int1, Vector2d vector2d)
double
getRotation()
Vector2d
getRow(int int1, Vector2d vector2d)
Vector2d
getScale(Vector2d vector2d)
Matrix2dc
getToAddress(long long1)
java.nio.ByteBuffer
getTransposed(int int1, java.nio.ByteBuffer byteBuffer)
java.nio.DoubleBuffer
getTransposed(int int1, java.nio.DoubleBuffer doubleBuffer)
java.nio.ByteBuffer
getTransposed(java.nio.ByteBuffer byteBuffer)
java.nio.DoubleBuffer
getTransposed(java.nio.DoubleBuffer doubleBuffer)
int
hashCode()
Matrix2d
identity()
Matrix2d
invert()
Matrix2d
invert(Matrix2d matrix2d)
boolean
isFinite()
Matrix2d
lerp(Matrix2dc matrix2dc, double double1)
Matrix2d
lerp(Matrix2dc matrix2dc, double double1, Matrix2d matrix2d)
double
m00()
Matrix2d
m00(double double1)
double
m01()
Matrix2d
m01(double double1)
double
m10()
Matrix2d
m10(double double1)
double
m11()
Matrix2d
m11(double double1)
Matrix2d
mul(Matrix2dc matrix2dc)
Matrix2d
mul(Matrix2dc matrix2dc, Matrix2d matrix2d)
Matrix2d
mul(Matrix2fc matrix2fc)
Matrix2d
mul(Matrix2fc matrix2fc, Matrix2d matrix2d)
Matrix2d
mulComponentWise(Matrix2dc matrix2dc)
Matrix2d
mulComponentWise(Matrix2dc matrix2dc, Matrix2d matrix2d)
Matrix2d
mulLocal(Matrix2dc matrix2dc)
Matrix2d
mulLocal(Matrix2dc matrix2dc, Matrix2d matrix2d)
Matrix2d
normal()
Matrix2d
normal(Matrix2d matrix2d)
Vector2d
normalizedPositiveX(Vector2d vector2d)
Vector2d
normalizedPositiveY(Vector2d vector2d)
Vector2d
positiveX(Vector2d vector2d)
Vector2d
positiveY(Vector2d vector2d)
void
readExternal(java.io.ObjectInput objectInput)
Matrix2d
rotate(double double1)
Matrix2d
rotate(double double1, Matrix2d matrix2d)
Matrix2d
rotateLocal(double double1)
Matrix2d
rotateLocal(double double1, Matrix2d matrix2d)
Matrix2d
rotation(double double1)
Matrix2d
scale(double double1)
Matrix2d
scale(double double1, double double2)
Matrix2d
scale(double double1, double double2, Matrix2d matrix2d)
Matrix2d
scale(double double1, Matrix2d matrix2d)
Matrix2d
scale(Vector2dc vector2dc)
Matrix2d
scale(Vector2dc vector2dc, Matrix2d matrix2d)
Matrix2d
scaleLocal(double double1, double double2)
Matrix2d
scaleLocal(double double1, double double2, Matrix2d matrix2d)
Matrix2d
scaling(double double1)
Matrix2d
scaling(double double1, double double2)
Matrix2d
scaling(Vector2dc vector2dc)
Matrix2d
set(double[] doubleArray)
Matrix2d
set(double double1, double double2, double double3, double double4)
Matrix2d
set(int int1, int int2, double double1)
Matrix2d
set(java.nio.ByteBuffer byteBuffer)
Matrix2d
set(java.nio.DoubleBuffer doubleBuffer)
Matrix2d
set(Matrix2dc matrix2dc)
Matrix2d
set(Matrix2fc matrix2fc)
Matrix2d
set(Matrix3dc matrix3dc)
Matrix2d
set(Matrix3fc matrix3fc)
Matrix2d
set(Matrix3x2dc matrix3x2dc)
Matrix2d
set(Matrix3x2fc matrix3x2fc)
Matrix2d
set(Vector2dc vector2dc, Vector2dc vector2dc2)
Matrix2d
setColumn(int int1, double double1, double double2)
Matrix2d
setColumn(int int1, Vector2dc vector2dc)
Matrix2d
setFromAddress(long long1)
Matrix2d
setRow(int int1, double double1, double double2)
Matrix2d
setRow(int int1, Vector2dc vector2dc)
Matrix2d
sub(Matrix2dc matrix2dc)
Matrix2d
sub(Matrix2dc matrix2dc, Matrix2d matrix2d)
Matrix2d
swap(Matrix2d matrix2d)
java.lang.String
toString()
java.lang.String
toString(java.text.NumberFormat numberFormat)
Vector2d
transform(double double1, double double2, Vector2d vector2d)
Vector2d
transform(Vector2d vector2d)
Vector2d
transform(Vector2dc vector2dc, Vector2d vector2d)
Vector2d
transformTranspose(double double1, double double2, Vector2d vector2d)
Vector2d
transformTranspose(Vector2d vector2d)
Vector2d
transformTranspose(Vector2dc vector2dc, Vector2d vector2d)
Matrix2d
transpose()
Matrix2d
transpose(Matrix2d matrix2d)
void
writeExternal(java.io.ObjectOutput objectOutput)
Matrix2d
zero()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
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
public Matrix2d(java.nio.DoubleBuffer doubleBuffer) -
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
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 double getRotation()- Specified by:
getRotation
in interfaceMatrix2dc
-
get
public java.nio.DoubleBuffer get(java.nio.DoubleBuffer doubleBuffer) -
get
public java.nio.DoubleBuffer get(int int1, java.nio.DoubleBuffer doubleBuffer) -
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.DoubleBuffer getTransposed(java.nio.DoubleBuffer doubleBuffer)- Specified by:
getTransposed
in interfaceMatrix2dc
-
getTransposed
public java.nio.DoubleBuffer getTransposed(int int1, java.nio.DoubleBuffer doubleBuffer)- Specified by:
getTransposed
in interfaceMatrix2dc
-
getTransposed
public java.nio.ByteBuffer getTransposed(java.nio.ByteBuffer byteBuffer)- Specified by:
getTransposed
in interfaceMatrix2dc
-
getTransposed
public java.nio.ByteBuffer getTransposed(int int1, java.nio.ByteBuffer byteBuffer)- 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
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 interfaceMatrix2dc
-
getRow
-
setRow
- Throws:
java.lang.IndexOutOfBoundsException
-
setRow
public Matrix2d setRow(int int1, double double1, double double2) throws java.lang.IndexOutOfBoundsException- Throws:
java.lang.IndexOutOfBoundsException
-
getColumn
-
setColumn
public Matrix2d setColumn(int int1, Vector2dc vector2dc) throws java.lang.IndexOutOfBoundsException- Throws:
java.lang.IndexOutOfBoundsException
-
setColumn
public Matrix2d setColumn(int int1, double double1, double double2) throws java.lang.IndexOutOfBoundsException- Throws:
java.lang.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()- 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 interfaceMatrix2dc
-
lerp
-
lerp
-
isFinite
public boolean isFinite()
-