public final class Matrix22 extends AMatrix implements ISpecialisedTransform
| Modifier and Type | Field and Description |
|---|---|
double |
m00 |
double |
m01 |
double |
m10 |
double |
m11 |
| Constructor and Description |
|---|
Matrix22() |
Matrix22(AMatrix m) |
Matrix22(double m00,
double m01,
double m10,
double m11) |
Matrix22(Matrix22 source) |
| Modifier and Type | Method and Description |
|---|---|
Matrix22 |
clone()
Clones the transform, performing a deep copy where needed
|
Vector2 |
cloneRow(int row) |
int |
columnCount()
Returns the number of columns in the matrix
|
double |
determinant()
Calculates the determinant of the matrix.
|
boolean |
equals(Matrix22 m) |
boolean |
equals(Object o) |
Matrix22 |
exactClone()
Returns an exact deep clone of an array (i.e.
|
double |
get(int row,
int column)
Returns a specified element in the matrix
|
Matrix22 |
getTranspose()
Returns a transposed version of this matrix.
|
Matrix22 |
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)
|
void |
multiply(double factor) |
int |
rowCount()
Returns the number of rows in the matrix
|
void |
set(int row,
int column,
double value)
Sets a specified element in the matrix
|
Vector4 |
toVector()
Converts the matrix to a single flattened vector
in row major order.
|
double |
trace() |
void |
transform(AVector source,
AVector dest)
Transforms the source vector, storing the result in the given destination vector
|
Vector2 |
transform(Vector2 source) |
void |
transform(Vector2 source,
AVector dest) |
void |
transform(Vector2 source,
Vector2 dest) |
void |
transformInPlace(Vector2 dest) |
add, add, add, add, addAt, addMultiple, addRowMultiple, applyOp, applyOp, asVector, broadcast, calculateElement, compose, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, dimensionality, elementCount, elementMul, elementSum, epsilonEquals, equals, equals, equals, get, get, get, getColumn, getElements, getLeadingDiagonal, getLongShape, getMatrixComponent, getRow, getShape, getSlices, hashCode, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, isElementConstrained, isFullyMutable, isIdentity, isInvertible, isMutable, isView, isZeroMatrix, iterator, mul, multiplyRow, outerProduct, outputDimensions, reshape, scale, set, set, set, set, set, set, setElements, setElements, slice, sliceCount, sub, sub, sub, sub, swapColumns, swapRows, toAffineTransform, toMutableMatrix, toString, transformInPlace, transposeInPlace, validategetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponents, transformpublic double m00
public double m01
public double m10
public double m11
public Matrix22()
public Matrix22(Matrix22 source)
public Matrix22(double m00,
double m01,
double m10,
double m11)
public Matrix22(AMatrix m)
public void multiply(double factor)
public double determinant()
AMatrixdeterminant in class AMatrixpublic Matrix22 inverse()
ATransformpublic 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)
ATransformtransform in interface ITransformtransform in class AMatrixpublic void transformInPlace(Vector2 dest)
public boolean isSquare()
ATransformpublic Vector4 toVector()
AMatrixpublic Matrix22 getTranspose()
AMatrixgetTranspose in class AMatrixpublic boolean equals(Matrix22 m)
public Matrix22 clone()
ATransformpublic Matrix22 exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixCopyright © 2013. All Rights Reserved.