Uses of Class
org.joml.Matrix2f
Packages that use Matrix2f
-
Uses of Matrix2f 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
.Matrix2f.identity()
Set this matrix to the identity.Matrix2f.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
.Matrix2f.m00
(float m00) Set the value of the matrix element at column 0 and row 0.Matrix2f.m01
(float m01) Set the value of the matrix element at column 0 and row 1.Matrix2f.m10
(float m10) Set the value of the matrix element at column 1 and row 0.Matrix2f.m11
(float 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 and store the result indest
.Matrix2f.mulComponentWise
(Matrix2fc other) Component-wise multiplythis
byother
.Matrix2f.mulComponentWise
(Matrix2fc other, Matrix2f dest) Matrix2fc.mulComponentWise
(Matrix2fc other, Matrix2f 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
.Matrix2f.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
.Matrix2f.rotate
(float 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
.Matrix2f.rotateLocal
(float angle) Pre-multiply a rotation to this matrix by rotating the given amount of radians about the origin.Matrix2f.rotateLocal
(float angle, Matrix2f dest) Matrix2fc.rotateLocal
(float ang, Matrix2f dest) Pre-multiply a rotation to this matrix by rotating the given amount of radians and store the result indest
.Matrix2f.rotation
(float angle) Set this matrix to a rotation matrix which rotates the given radians about the origin.Matrix2f.scale
(float xy) Apply scaling to this matrix by uniformly scaling all base axes by the givenxy
factor.Matrix2f.scale
(float x, float 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
.Matrix2f.scaleLocal
(float x, float y) Pre-multiply scaling to this matrix by scaling the base axes by the given x and y factors.Matrix2f.scaleLocal
(float x, float y, Matrix2f dest) Matrix2fc.scaleLocal
(float x, float y, Matrix2f dest) Pre-multiply scaling tothis
matrix by scaling the base axes by the given x and y factors and store the result indest
.Matrix2f.scaling
(float factor) Set this matrix to be a simple scale matrix, which scales all axes uniformly by the given factor.Matrix2f.scaling
(float x, float 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.Matrix2f.set
(float[] m) Set the values in this matrix based on the supplied float array.Matrix2f.set
(float m00, float m01, float m10, float m11) Set the values within this matrix to the supplied float values.Matrix2f.set
(int column, int row, float value) Set the matrix element at the given column and row to the specified value.Matrix2f.set
(int index, ByteBuffer buffer) Set the values of this matrix by reading 4 float values from the givenByteBuffer
in column-major order, starting at the specified absolute buffer position/index.Matrix2f.set
(int index, FloatBuffer buffer) Set the values of this matrix by reading 4 float values from the givenFloatBuffer
in column-major order, starting at the specified absolute buffer position/index.Matrix2f.set
(ByteBuffer buffer) Set the values of this matrix by reading 4 float values from the givenByteBuffer
in column-major order, starting at its current position.Matrix2f.set
(FloatBuffer buffer) Set the values of this matrix by reading 4 float values from the givenFloatBuffer
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 upper left 2x2 of the givenMatrix3fc
.Matrix2f.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.Matrix2f.setColumn
(int column, float x, float y) Set the column at the givencolumn
index, starting with0
.Set the column at the givencolumn
index, starting with0
.Matrix2f.setFromAddress
(long address) Set the values of this matrix by reading 4 float values from off-heap memory in column-major order, starting at the given address.Matrix2f.setRow
(int row, float x, float 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.Matrix2f.transpose()
Transpose this matrix.Transposethis
matrix and store the result indest
.Matrix2f.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
.Matrix2f.mulComponentWise
(Matrix2fc other, Matrix2f dest) Matrix2fc.mulComponentWise
(Matrix2fc other, Matrix2f 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
.Matrix2f.rotateLocal
(float angle, Matrix2f dest) Matrix2fc.rotateLocal
(float ang, Matrix2f 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
.Matrix2f.scaleLocal
(float x, float y, Matrix2f dest) Matrix2fc.scaleLocal
(float x, float y, Matrix2f 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
.