Package com.luciad.geometry.cartesian
Class TLcd3DMatrix
java.lang.Object
com.luciad.geometry.cartesian.TLcd3DMatrix
Representation for a 3*3 matrix.
-
Field Summary
Modifier and TypeFieldDescriptiondouble
Element at row 0 and column 0.double
Element at row 0 and column 1.double
Element at row 0 and column 2.double
Element at row 1 and column 0.double
Element at row 1 and column 1.double
Element at row 1 and column 2.double
Element at row 2 and column 0.double
Element at row 2 and column 1.double
Element at row 2 and column 2. -
Constructor Summary
ConstructorDescriptionTLcd3DMatrix
(double aM00, double aM01, double aM02, double aM10, double aM11, double aM12, double aM20, double aM21, double aM22) Constructs and initializes aTLcd3DMatrix
from the specified nine values. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Computes the determinant of this matrix.void
invert
(TLcd3DMatrix aMatrix) Sets the value of this matrix to the matrix inverse of the passed matrix aMatrix.void
setRow
(int aRowNumber, double aM0, double aM1, double aM2) Sets the specified row of thisTLcd3DMatrix
to the 3 values provided.
-
Field Details
-
m00
public double m00Element at row 0 and column 0. -
m01
public double m01Element at row 0 and column 1. -
m02
public double m02Element at row 0 and column 2. -
m10
public double m10Element at row 1 and column 0. -
m11
public double m11Element at row 1 and column 1. -
m12
public double m12Element at row 1 and column 2. -
m20
public double m20Element at row 2 and column 0. -
m21
public double m21Element at row 2 and column 1. -
m22
public double m22Element at row 2 and column 2.
-
-
Constructor Details
-
TLcd3DMatrix
public TLcd3DMatrix(double aM00, double aM01, double aM02, double aM10, double aM11, double aM12, double aM20, double aM21, double aM22) Constructs and initializes aTLcd3DMatrix
from the specified nine values.- Parameters:
aM00
- Element at row 0 and column 0.aM01
- Element at row 0 and column 1.aM02
- Element at row 0 and column 2.aM10
- Element at row 1 and column 0.aM11
- Element at row 1 and column 1.aM12
- Element at row 1 and column 2.aM20
- Element at row 2 and column 0.aM21
- Element at row 2 and column 1.aM22
- Element at row 2 and column 2.
-
-
Method Details
-
setRow
public void setRow(int aRowNumber, double aM0, double aM1, double aM2) Sets the specified row of thisTLcd3DMatrix
to the 3 values provided.- Parameters:
aRowNumber
- the row number of the given values.aM0
- the element at column 0.aM1
- the element at column 1.aM2
- the element at column 2.
-
invert
Sets the value of this matrix to the matrix inverse of the passed matrix aMatrix.- Parameters:
aMatrix
- the matrix to calculate the inverse for.
-
determinant
public double determinant()Computes the determinant of this matrix.- Returns:
- the determinant of this matrix.
-