public interface Matrix4d
Modifier and Type | Field and Description |
---|---|
static Matrix4d |
IDENTITY
Returns a new identity matrix.
|
Modifier and Type | Method and Description |
---|---|
MMatrix4d |
add(double scalar)
Returns a copy of this matrix after adding a scalar to each component of
this matrix.
|
MMatrix4d |
add(Matrix4d matrix)
Returns a copy of this matrix after calculating the sum of this matrix
and the given matrix.
|
static Matrix4d |
create(double[] elements)
Constructs a matrix with the given array of 16 elements or 12 elements.
|
static Matrix4d |
create(double m00,
double m01,
double m02,
double m03,
double m10,
double m11,
double m12,
double m13,
double m20,
double m21,
double m22,
double m23,
double m30,
double m31,
double m32,
double m33)
Constructs a matrix with the given 16 elements.
|
static Matrix4d |
create(Matrix4d matrix)
Returns a new matrix with the values of the given matrix.
|
static Matrix4d |
create(Vector3d x,
Vector3d y,
Vector3d z,
Vector3d translation)
Constructs a matrix from the given vectors and the translation vector.
|
double |
getM00()
Returns the first element of the first row in the matrix.
|
double |
getM01()
Returns the second element of the first row in the matrix.
|
double |
getM02()
Returns the third element of the first row in the matrix.
|
double |
getM03()
Returns the fourth element of the first row in the matrix.
|
double |
getM10()
Returns the first element of the second row in the matrix.
|
double |
getM11()
Returns the second element of the second row in the matrix.
|
double |
getM12()
Returns the third element of the second row in the matrix.
|
double |
getM13()
Returns the fourth element of the second row in the matrix.
|
double |
getM20()
Returns the first element of the third row in the matrix.
|
double |
getM21()
Returns the second element of the third row in the matrix.
|
double |
getM22()
Returns the third element of the third row in the matrix.
|
double |
getM23()
Returns the fourth element of the third row in the matrix.
|
double |
getM30()
Returns the first element of the fourth row in the matrix.
|
double |
getM31()
Returns the second element of the fourth row in the matrix.
|
double |
getM32()
Returns the third element of the fourth row in the matrix.
|
double |
getM33()
Returns the fourth element of the fourth row in the matrix.
|
MVector3d |
getTranslation()
Returns the translation component of this matrix.
|
boolean |
isIdentityMatrix()
Returns true if this matrix is an identity matrix.
|
MMatrix4d |
multiply(Matrix4d matrix)
Returns a copy of this matrix after calculating the product of this
matrix and the given matrix.
|
static MMatrix4d |
productOf(Matrix4d matrix1,
Matrix4d matrix2)
Returns the product of the two inputed matrixes.
|
MMatrix4d |
subtract(Matrix4d matrix)
Returns a copy of this matrix after calculating the difference between
this matrix and the given matrix.
|
Collection<MVector3d> |
transform(Collection<? extends Vector3d> points)
Transforms the points with the transformation matrix.
|
MVector3d |
transform(Vector3d vector)
Returns a copy of the given vector transformed by this matrix.
|
MVector3d |
transformNormal(Vector3d normal)
Transforms the normal of this matrix by getting the normals of the
inputed parameter.
|
static final Matrix4d IDENTITY
static Matrix4d create(double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, double m20, double m21, double m22, double m23, double m30, double m31, double m32, double m33)
m00
- first element in first rowm01
- second element in first rowm02
- third element in first rowm03
- fourth element in first rowm10
- first element in second rowm11
- second element in second rowm12
- third element in second rowm13
- fourth element in second rowm20
- first element in third rowm21
- second element in third rowm22
- third element in third rowm23
- fourth element in third rowm30
- first element in fourth rowm31
- second element in fourth rowm32
- third element in fourth rowm33
- fourth element in fourth rowstatic Matrix4d create(Matrix4d matrix)
matrix
- the matrix that is given to create another matrixstatic Matrix4d create(Vector3d x, Vector3d y, Vector3d z, Vector3d translation)
x
- the x vectory
- the y vectorz
- the z vectortranslation
- the translation vectorstatic Matrix4d create(double[] elements)
elements
- the elements arrayIllegalArgumentException
- if the given array does not contain 12 or 16 elementsdouble getM00()
double getM01()
double getM02()
double getM03()
double getM10()
double getM11()
double getM12()
double getM13()
double getM20()
double getM21()
double getM22()
double getM23()
double getM30()
double getM31()
double getM32()
double getM33()
MVector3d getTranslation()
MVector3d transform(Vector3d vector)
vector
- vector that is inputed to transform this vectorMVector3d transformNormal(Vector3d normal)
normal
- the input normal to be transformedboolean isIdentityMatrix()
Collection<MVector3d> transform(Collection<? extends Vector3d> points)
points
- the collection of points to be transformedstatic MMatrix4d productOf(Matrix4d matrix1, Matrix4d matrix2)
matrix1
- matrix on the left side of the multiplicationmatrix2
- matrix on the right side of the multiplicationMMatrix4d add(double scalar)
scalar
- the scalar that is added to each component of this matrixMMatrix4d add(Matrix4d matrix)
matrix
- the matrix that is added to this matrixMMatrix4d multiply(Matrix4d matrix)
matrix
- the matrix by which this matrix is multipliedMMatrix4d subtract(Matrix4d matrix)
matrix
- the matrix on the right side of the differenceCopyright © 2019 Solibri, Inc.. All rights reserved.