Uses of Class
org.joml.Matrix2d
Packages that use Matrix2d
-
Uses of Matrix2d in org.joml
Modifier and TypeMethodDescriptionComponent-wise addthis
andother
.Component-wise addthis
andother
and store the result indest
.Get the current values ofthis
matrix and store them intodest
.Get the current values ofthis
matrix and store them intodest
.Matrix2d.identity()
Set this matrix to the identity.Matrix2d.invert()
Invert this matrix.Invert thethis
matrix and store the result indest
.Linearly interpolatethis
andother
using the given interpolation factort
and store the result inthis
.Linearly interpolatethis
andother
using the given interpolation factort
and store the result indest
.Matrix2d.m00
(double m00) Set the value of the matrix element at column 0 and row 0.Matrix2d.m01
(double m01) Set the value of the matrix element at column 0 and row 1.Matrix2d.m10
(double m10) Set the value of the matrix element at column 1 and row 0.Matrix2d.m11
(double m11) Set the value of the matrix element at column 1 and row 1.Multiply this matrix by the suppliedright
matrix.Multiply this matrix by the suppliedright
matrix.Multiply this matrix by the suppliedright
matrix and store the result indest
.Multiply this matrix by the suppliedright
matrix and store the result indest
.Matrix2d.mulComponentWise
(Matrix2dc other) Component-wise multiplythis
byother
.Matrix2d.mulComponentWise
(Matrix2dc other, Matrix2d dest) Matrix2dc.mulComponentWise
(Matrix2dc other, Matrix2d dest) Component-wise multiplythis
byother
and store the result indest
.Pre-multiply this matrix by the suppliedleft
matrix and store the result inthis
.Pre-multiply this matrix by the suppliedleft
matrix and store the result indest
.Matrix2d.normal()
Setthis
matrix to its own normal matrix.Compute a normal matrix fromthis
matrix and store it intodest
.Compute a normal matrix fromthis
matrix and store it intodest
.Matrix2d.rotate
(double angle) Apply rotation about the origin to this matrix by rotating the given amount of radians.Apply rotation to this matrix by rotating the given amount of radians and store the result indest
.Matrix2d.rotateLocal
(double angle) Pre-multiply a rotation to this matrix by rotating the given amount of radians about the origin.Matrix2d.rotateLocal
(double angle, Matrix2d dest) Matrix2dc.rotateLocal
(double ang, Matrix2d dest) Pre-multiply a rotation to this matrix by rotating the given amount of radians and store the result indest
.Matrix2d.rotation
(double angle) Set this matrix to a rotation matrix which rotates the given radians about the origin.Matrix2d.scale
(double xy) Apply scaling to this matrix by uniformly scaling all base axes by the givenxy
factor.Matrix2d.scale
(double x, double y) Apply scaling to this matrix by scaling the base axes by the given x and y factors.Apply scaling to this matrix by scaling the base axes by the givenxy.x
andxy.y
factors, respectively.Apply scaling to this matrix by scaling the base axes by the given x and y factors and store the result indest
.Apply scaling to this matrix by uniformly scaling all base axes by the givenxy
factor and store the result indest
.Apply scaling tothis
matrix by scaling the base axes by the givenxy.x
andxy.y
factors, respectively and store the result indest
.Matrix2d.scaleLocal
(double x, double y) Pre-multiply scaling to this matrix by scaling the base axes by the given x and y factors.Matrix2d.scaleLocal
(double x, double y, Matrix2d dest) Matrix2dc.scaleLocal
(double x, double y, Matrix2d dest) Pre-multiply scaling tothis
matrix by scaling the base axes by the given x and y factors and store the result indest
.Matrix2d.scaling
(double factor) Set this matrix to be a simple scale matrix, which scales all axes uniformly by the given factor.Matrix2d.scaling
(double x, double y) Set this matrix to be a simple scale matrix.Set this matrix to be a simple scale matrix which scales the base axes byxy.x
andxy.y
respectively.Matrix2d.set
(double[] m) Set the values in this matrix based on the supplied double array.Matrix2d.set
(double m00, double m01, double m10, double m11) Set the values within this matrix to the supplied double values.Matrix2d.set
(int column, int row, double value) Set the matrix element at the given column and row to the specified value.Matrix2d.set
(int index, ByteBuffer buffer) Set the values of this matrix by reading 4 double values from the givenByteBuffer
in column-major order, starting at the specified absolute buffer position/index.Matrix2d.set
(int index, DoubleBuffer buffer) Set the values of this matrix by reading 4 double values from the givenDoubleBuffer
in column-major order, starting at the specified absolute buffer position/index.Matrix2d.set
(ByteBuffer buffer) Set the values of this matrix by reading 4 double values from the givenByteBuffer
in column-major order, starting at its current position.Matrix2d.set
(DoubleBuffer buffer) Set the values of this matrix by reading 4 double values from the givenDoubleBuffer
in column-major order, starting at its current position.Set the elements of this matrix to the ones inm
.Set the elements of this matrix to the ones inm
.Set the elements of this matrix to the upper left 2x2 of the givenMatrix3dc
.Set the elements of this matrix to the upper left 2x2 of the givenMatrix3dc
.Matrix2d.set
(Matrix3x2dc m) Set the elements of this matrix to the left 2x2 submatrix ofm
.Matrix2d.set
(Matrix3x2fc m) Set the elements of this matrix to the left 2x2 submatrix ofm
.Set the two columns of this matrix to the supplied vectors, respectively.Matrix2d.setColumn
(int column, double x, double y) Set the column at the givencolumn
index, starting with0
.Set the column at the givencolumn
index, starting with0
.Matrix2d.setFromAddress
(long address) Set the values of this matrix by reading 4 double values from off-heap memory in column-major order, starting at the given address.Matrix2d.setRow
(int row, double x, double y) Set the row at the givenrow
index, starting with0
.Set the row at the givenrow
index, starting with0
.Component-wise subtractsubtrahend
fromthis
.Component-wise subtractsubtrahend
fromthis
and store the result indest
.Exchange the values ofthis
matrix with the givenother
matrix.Matrix2d.transpose()
Transpose this matrix.Transposethis
matrix and store the result indest
.Matrix2d.zero()
Set all values within this matrix to zero.Modifier and TypeMethodDescriptionComponent-wise addthis
andother
and store the result indest
.Get the current values ofthis
matrix and store them intodest
.Get the current values ofthis
matrix and store them intodest
.Invert thethis
matrix and store the result indest
.Linearly interpolatethis
andother
using the given interpolation factort
and store the result indest
.Multiply this matrix by the suppliedright
matrix and store the result indest
.Multiply this matrix by the suppliedright
matrix and store the result indest
.Matrix2d.mulComponentWise
(Matrix2dc other, Matrix2d dest) Matrix2dc.mulComponentWise
(Matrix2dc other, Matrix2d dest) Component-wise multiplythis
byother
and store the result indest
.Pre-multiply this matrix by the suppliedleft
matrix and store the result indest
.Compute a normal matrix fromthis
matrix and store it intodest
.Compute a normal matrix fromthis
matrix and store it intodest
.Apply rotation to this matrix by rotating the given amount of radians and store the result indest
.Matrix2d.rotateLocal
(double angle, Matrix2d dest) Matrix2dc.rotateLocal
(double ang, Matrix2d dest) Pre-multiply a rotation to this matrix by rotating the given amount of radians and store the result indest
.Apply scaling to this matrix by scaling the base axes by the given x and y factors and store the result indest
.Apply scaling to this matrix by uniformly scaling all base axes by the givenxy
factor and store the result indest
.Apply scaling tothis
matrix by scaling the base axes by the givenxy.x
andxy.y
factors, respectively and store the result indest
.Matrix2d.scaleLocal
(double x, double y, Matrix2d dest) Matrix2dc.scaleLocal
(double x, double y, Matrix2d dest) Pre-multiply scaling tothis
matrix by scaling the base axes by the given x and y factors and store the result indest
.Component-wise subtractsubtrahend
fromthis
and store the result indest
.Exchange the values ofthis
matrix with the givenother
matrix.Transposethis
matrix and store the result indest
.