public abstract class AffineTransform2dBase extends DenseMatrixBase
[ A p ]
M = [ ]
[ 0 1 ]
Matrix.Partition, Matrix.WriteFormatINDEFINITE, POSITIVE_DEFINITE, SPD, SYMMETRIC| Constructor and Description |
|---|
AffineTransform2dBase() |
| Modifier and Type | Method and Description |
|---|---|
int |
colSize()
Returns the number of columns in this matrix (which is always 3).
|
abstract AffineTransform2dBase |
copy() |
boolean |
epsilonEquals(AffineTransform2dBase X,
double epsilon)
Returns true if the elements of this transformation equal those of
transform
X1within a prescribed tolerance
epsilon. |
boolean |
equals(AffineTransform2dBase X)
Returns true if the elements of this transformation exactly equal those of
transform
X1. |
void |
get(double[] values)
Copies the elements of this matrix into an array of doubles.
|
double |
get(int i,
int j)
Gets a single element of this matrix.
|
void |
getColumn(int j,
double[] values)
Copies a column of this matrix into an array of doubles.
|
void |
getColumn(int j,
double[] values,
int off)
Copies a column of this matrix into an array of doubles, starting at a
specified offset.
|
Matrix2dBase |
getMatrix()
Returns the matrix assiciated with this affine transform.
|
Vector2d |
getOffset()
Returns the offset vector assiciated with this affine transform.
|
void |
getRow(int i,
double[] values)
Copies a row of this matrix into an array of doubles.
|
void |
getRow(int i,
double[] values,
int off)
Copies a row of this matrix into an array of doubles, starting at a
specified offset.
|
boolean |
invert()
Inverts this transform in place.
|
void |
mul(Vector3d vr)
Multiplies the column vector vr by this transform and places the result
back in vr.
|
void |
mul(Vector3d vr,
Vector3d v1)
Multiplies the column vector v1 by this transform and places the result in
vr.
|
boolean |
mulInverse(Vector3d vr)
Multiplies the column vector vr by the inverse of this transform and
places the result back in vr.
|
boolean |
mulInverse(Vector3d vr,
Vector3d v1)
Multiplies the column vector v1 by the inverse of this transform and
places the result in vr.
|
int |
rowSize()
Returns the number of rows in this matrix (which is always 3).
|
void |
set(double[] vals)
Sets the elements of this matrix from an array of doubles.
|
void |
set(int i,
int j,
double value)
Sets a single element of this matrix.
|
void |
set(RigidTransform2d X)
Sets this affine transform to the rigid body transform described by X.
|
void |
setColumn(int j,
double[] values)
Sets a column of this matrix from an array of doubles.
|
void |
setIdentity()
Sets the transformation to the identity.
|
void |
setRow(int i,
double[] values)
Set a row of this matrix from an array of doubles.
|
add, checkConsistency, set, set, set, set, setCCSValues, setColumn, setCRSValues, setRow, setSubMatrixcontainsNaN, determinant, epsilonEquals, equals, frobeniusNorm, frobeniusNormSquared, get, getCCSIndices, getCCSIndices, getCCSIndices, getCCSValues, getCCSValues, getCCSValues, getColumn, getCRSIndices, getCRSIndices, getCRSIndices, getCRSValues, getCRSValues, getCRSValues, getDefaultFormat, getRow, getSize, getSubMatrix, hasNaN, idString, infinityNorm, isFixedSize, isSymmetric, maxNorm, mul, mul, mul, mulAdd, mulAdd, mulAdd, mulTranspose, mulTranspose, mulTranspose, mulTransposeAdd, mulTransposeAdd, mulTransposeAdd, numNonZeroVals, numNonZeroVals, oneNorm, scan, setCRSValues, setDefaultFormat, setSize, toString, toString, toString, trace, write, write, write, write, write, write, writeToFileequals, getClass, hashCode, notify, notifyAll, wait, wait, waitdeterminant, epsilonEquals, equals, frobeniusNorm, frobeniusNormSquared, getCCSIndices, getCCSIndices, getCCSIndices, getCCSValues, getCCSValues, getCCSValues, getColumn, getCRSIndices, getCRSIndices, getCRSIndices, getCRSValues, getCRSValues, getCRSValues, getRow, getSize, getSubMatrix, infinityNorm, isFixedSize, isSymmetric, maxNorm, mul, mul, mul, mulAdd, mulAdd, mulAdd, mulTranspose, mulTranspose, mulTranspose, mulTransposeAdd, mulTransposeAdd, mulTransposeAdd, numNonZeroVals, numNonZeroVals, oneNorm, scan, setSize, toString, toString, trace, write, write, writepublic Matrix2dBase getMatrix()
public Vector2d getOffset()
public int colSize()
colSize in interface LinearTransformNdcolSize in interface MatrixcolSize in class MatrixBasepublic int rowSize()
rowSize in interface LinearTransformNdrowSize in interface MatrixrowSize in class MatrixBasepublic double get(int i,
int j)
get in interface Matrixget in class MatrixBasei - element row indexj - element column indexpublic void get(double[] values)
(i,j) is
stored at location i*colSize()+j.get in interface Matrixget in class MatrixBasevalues - array into which values are copiedpublic void getColumn(int j,
double[] values)
getColumn in interface MatrixgetColumn in class MatrixBasej - column indexvalues - array into which the column is copiedpublic void getColumn(int j,
double[] values,
int off)
getColumn in interface MatrixgetColumn in class MatrixBasej - column indexvalues - array into which the column is copiedoff - offset in values where copying should beginpublic void getRow(int i,
double[] values)
getRow in interface MatrixgetRow in class MatrixBasei - row indexvalues - array into which the row is copiedpublic void getRow(int i,
double[] values,
int off)
getRow in interface MatrixgetRow in class MatrixBasei - row indexvalues - array into which the row is copiedoff - offset in values where copying should beginpublic final void set(int i,
int j,
double value)
set in interface DenseMatrixset in class DenseMatrixBasei - element row indexj - element column indexvalue - element valuepublic void set(double[] vals)
(i,j) is stored at location i*colSize()+j.set in interface DenseMatrixset in class DenseMatrixBasevals - array from which values are copiedpublic void setColumn(int j,
double[] values)
setColumn in interface DenseMatrixsetColumn in class DenseMatrixBasej - column indexvalues - array from which column values are copiedpublic void setRow(int i,
double[] values)
setRow in interface DenseMatrixsetRow in class DenseMatrixBasei - row indexvalues - array from which the row is copiedpublic void set(RigidTransform2d X)
X - rigid body transform to copypublic void setIdentity()
public void mul(Vector3d vr, Vector3d v1)
vr - result vectorv1 - vector to multiplypublic void mul(Vector3d vr)
vr - vector to multiply (in place)public boolean mulInverse(Vector3d vr, Vector3d v1)
vr - result vectorv1 - vector to multiplypublic boolean mulInverse(Vector3d vr)
vr - vector to multiply (in place)public boolean invert()
public boolean epsilonEquals(AffineTransform2dBase X, double epsilon)
X1within a prescribed tolerance
epsilon.X - transform to compare withepsilon - comparison tolerancepublic boolean equals(AffineTransform2dBase X)
X1.X - transform to compare withpublic abstract AffineTransform2dBase copy()