public final class Matrix33 extends AMatrix implements ISpecialisedTransform
| Modifier and Type | Field and Description |
|---|---|
double |
m00 |
double |
m01 |
double |
m02 |
double |
m10 |
double |
m11 |
double |
m12 |
double |
m20 |
double |
m21 |
double |
m22 |
| Constructor and Description |
|---|
Matrix33()
Create a new (zero-initialised) 3x3 Matrix
|
Matrix33(AMatrix m) |
Matrix33(double m00,
double m01,
double m02,
double m10,
double m11,
double m12,
double m20,
double m21,
double m22) |
Matrix33(Matrix33 source) |
| Modifier and Type | Method and Description |
|---|---|
Matrix33 |
clone()
Clones the transform, performing a deep copy where needed
|
Vector3 |
cloneRow(int row)
Returns a row of the matrix as a cloned vector
|
int |
columnCount()
Returns the number of columns in the matrix
|
AMatrix |
compose(AMatrix a) |
Matrix33 |
compose(Matrix33 a) |
static Matrix33 |
createIdentityMatrix() |
double |
determinant()
Calculates the determinant of the matrix.
|
boolean |
equals(Matrix33 m) |
boolean |
equals(Object o) |
double |
get(int row,
int column)
Returns a specified element in the matrix
|
Matrix33 |
getTranspose()
Returns a transposed version of this matrix.
|
Matrix33 |
inverse()
Return the inverse of this transformation if possible
|
boolean |
isSquare()
Returns true if the transform is square (same number of input and output dimensions)
|
int |
rowCount()
Returns the number of rows in the matrix
|
void |
scale(double factor)
Scales a matrix by a constant scalar factor.
|
void |
set(int row,
int column,
double value)
Sets a specified element in the matrix
|
Affine34 |
toAffineTransform() |
void |
transform(AVector source,
AVector dest)
Transforms the source vector, storing the result in the given destination vector
|
Vector3 |
transform(Vector3 source) |
void |
transform(Vector3 source,
AVector dest) |
void |
transform(Vector3 source,
Vector3 dest) |
void |
transformInPlace(AVector dest)
Transforms a vector destructively.
|
void |
transformInPlace(Vector3 dest) |
void |
transformNormal(AVector source,
AVector dest) |
void |
transformNormal(Vector3 source,
Vector3 dest) |
add, addMultiple, asVector, calculateElement, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, dimensionality, elementSum, entrywiseMul, epsilonEquals, equals, equals, get, getColumn, getLeadingDiagonal, getMatrixComponent, getRow, hashCode, inputDimensions, isFullyMutable, isIdentity, isInvertible, isZeroMatrix, iterator, mul, outputDimensions, reshape, set, sub, swapColumns, swapRows, toMutableMatrix, toString, toVector, transposeInPlacegetTranslationComponent, isLinearcomposetakeComponents, takeComponents, takeComponents, transformpublic double m00
public double m01
public double m02
public double m10
public double m11
public double m12
public double m20
public double m21
public double m22
public Matrix33()
public Matrix33(Matrix33 source)
public Matrix33(double m00,
double m01,
double m02,
double m10,
double m11,
double m12,
double m20,
double m21,
double m22)
public Matrix33(AMatrix m)
public double determinant()
AMatrixdeterminant in class AMatrixpublic void scale(double factor)
AMatrixpublic int rowCount()
AMatrixpublic int columnCount()
AMatrixcolumnCount in interface IMatrixcolumnCount in class AMatrixpublic double get(int row,
int column)
AMatrixpublic void set(int row,
int column,
double value)
AMatrixpublic void transform(AVector source, AVector dest)
ATransformpublic void transformNormal(AVector source, AVector dest)
transformNormal in class AAffineTransformpublic void transformInPlace(AVector dest)
ATransformtransformInPlace in class AMatrixpublic void transformInPlace(Vector3 dest)
public boolean isSquare()
ATransformpublic Affine34 toAffineTransform()
toAffineTransform in class AMatrixpublic Matrix33 getTranspose()
AMatrixgetTranspose in class AMatrixpublic Vector3 cloneRow(int row)
public Matrix33 inverse()
ATransformpublic Matrix33 clone()
ATransformpublic boolean equals(Matrix33 m)
public static Matrix33 createIdentityMatrix()
Copyright © 2013. All Rights Reserved.