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 |
|---|---|
void |
add(Matrix22 a) |
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
|
static Matrix22 |
create(double a,
double b,
double c,
double d) |
static Matrix22 |
createIdentity()
Creates a new mutable 2D identity matrix
|
static Matrix22 |
createReflectionMatrix(AVector normal) |
static Matrix22 |
createReflectionMatrix(Vector2 normal) |
static Matrix22 |
createRotationMatrix(double angle) |
static Matrix22 |
createScaleMatrix(double d) |
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
|
void |
getElements(double[] data,
int offset)
Gets all elements of the array, copying them into a double array
|
Matrix22 |
getTranspose()
Returns a transposed version of this matrix.
|
AMatrix |
innerProduct(AMatrix a) |
AVector |
innerProduct(AVector a) |
Matrix22 |
innerProduct(Matrix22 a) |
Vector2 |
innerProduct(Vector2 a) |
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)
|
boolean |
isSymmetric()
Returns true if a matrix is symmetric
|
void |
multiply(double factor)
Multiplies all elements of the array by a given double value
|
int |
rowCount()
Returns the number of rows in the matrix
|
void |
set(AMatrix m) |
void |
set(int row,
int column,
double value)
Sets a specified element in the matrix
|
void |
set(Matrix22 a) |
void |
sub(Matrix22 a) |
Vector |
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) |
abs, add, add, add, add, add, addAt, addMultiple, addRowMultiple, applyOp, applyOp, asDoubleArray, asElementList, asVector, bandIndex, bandLength, bandLength, bandPosition, broadcast, broadcastCloneLike, broadcastLike, broadcastLike, calculateElement, calculateElement, clamp, compose, compose, composeWith, composeWith, copyColumnTo, copyOfMatrix, copyOfTranslationVector, copyRowTo, copyTo, dimensionality, divide, divide, elementCount, elementDiv, elementIterator, elementMul, elementSquaredSum, elementSum, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, exp, fill, get, get, get, getBand, getBandWrapped, getColumn, getLeadingDiagonal, getLongShape, getMatrixComponent, getRow, getShape, getShape, getSlices, getSliceViews, getTransposeCopy, getTransposeView, hashCode, hasOrthonormalColumns, hassOrthonormalRows, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, isBoolean, isDiagonal, isElementConstrained, isFullyMutable, isHermitian, isIdentity, isInvertible, isLowerTriangular, isMutable, isOrthogonal, isPositiveDefinite, isRectangularDiagonal, isSameShape, isSameShape, isUpperTriangular, isView, isZero, iterator, log, lowerBandwidth, lowerBandwidthLimit, mul, multiply, multiplyRow, negate, nonZeroCount, outerProduct, outputDimensions, pow, reciprocal, reshape, reshape, scale, scaleAdd, set, set, set, set, set, setColumn, setElements, setElements, setRow, signum, slice, slice, sliceCount, sqrt, square, sub, sub, sub, sub, sub, subMatrix, swapColumns, swapRows, toAffineTransform, toArray, toDoubleArray, toDoubleBuffer, toMatrix, toMatrixTranspose, toMutableMatrix, toString, transform, transform, transform, transformInPlace, transformInPlace, transposeInnerProduct, transposeInnerProduct, transposeInPlace, unsafeGet, unsafeSet, upperBandwidth, upperBandwidthLimit, validategetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponentspublic 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 set(Matrix22 a)
public static Matrix22 create(double a, double b, double c, double d)
public static Matrix22 createRotationMatrix(double angle)
public static Matrix22 createScaleMatrix(double d)
public static Matrix22 createIdentity()
public void multiply(double factor)
INDArraypublic double determinant()
AMatrixdeterminant in class AMatrixpublic Matrix22 inverse()
ATransformpublic int rowCount()
AMatrixpublic int columnCount()
AMatrixcolumnCount in interface IMatrixcolumnCount in class AMatrixpublic void add(Matrix22 a)
public void sub(Matrix22 a)
public double get(int row,
int column)
AMatrixpublic void set(int row,
int column,
double value)
AMatrixpublic AMatrix innerProduct(AMatrix a)
innerProduct in class AMatrixpublic AVector innerProduct(AVector a)
innerProduct in class AMatrixpublic void transform(AVector source, AVector dest)
ATransformtransform in interface ITransformtransform in class AMatrixpublic void transformInPlace(Vector2 dest)
public boolean isSquare()
ATransformpublic boolean isSymmetric()
AMatrixisSymmetric in class AMatrixpublic Vector toVector()
AMatrixpublic Matrix22 getTranspose()
AMatrixgetTranspose in interface INDArraygetTranspose in class AMatrixpublic void getElements(double[] data,
int offset)
INDArraygetElements in interface INDArraygetElements in class AMatrixpublic boolean equals(Matrix22 m)
public Matrix22 clone()
ATransformpublic Matrix22 exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixCopyright © 2013. All Rights Reserved.