|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.referencing.operation.matrix.Matrix1
A matrix of fixed {@value}×{@value} size. This trivial matrix is returned as a result of MathTransform1D derivative computation.
Field Summary | |
double |
m00
The only element in this matrix. |
static int |
SIZE
The matrix size, which is 1. |
Constructor Summary | |
Matrix1()
Creates a new identity matrix. |
|
Matrix1(double m00)
Creates a new matrix initialized to the specified value. |
|
Matrix1(org.opengis.referencing.operation.Matrix matrix)
Creates a new matrix initialized to the same value than the specified one. |
Method Summary | |
java.lang.Object |
clone()
Returns a clone of this matrix. |
boolean |
equals(java.lang.Object object)
Returns if the specified object is of type and all of the data members are equal to the corresponding data members in this matrix. |
double |
getElement(int row,
int col)
Returns the element at the specified index. |
int |
getNumCol()
Returns the number of colmuns in this matrix, which is always {@value} in this implementation. |
int |
getNumRow()
Returns the number of rows in this matrix, which is always {@value} in this implementation. |
int |
hashCode()
Returns a hash code value based on the data values in this object. |
void |
invert()
Inverts this matrix in place. |
boolean |
isAffine()
Returns if this matrix is an affine transform. A transform is affine if the matrix is square and last row contains only zeros, except in the last column which contains 1. |
boolean |
isIdentity()
Returns if this matrix is an identity matrix. |
void |
multiply(org.opengis.referencing.operation.Matrix matrix)
Sets the value of this matrix to the result of multiplying itself with the specified matrix. In other words, performs = × . In the context of coordinate transformations, this is equivalent to AffineTransform.concatenate :
first transforms by the supplied transform and then transform the result by the original
transform. |
void |
negate()
Negates the value of this matrix: = . |
void |
setElement(int row,
int col,
double value)
Set the element at the specified index. |
void |
setIdentity()
Sets this matrix to the identity matrix. |
void |
setZero()
Sets all the values in this matrix to zero. |
java.lang.String |
toString()
Returns a string representation of this matrix. |
void |
transpose()
Sets the value of this matrix to its transpose. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public double m00
public static final int SIZE
Constructor Detail |
public Matrix1()
public Matrix1(double m00)
public Matrix1(org.opengis.referencing.operation.Matrix matrix)
Method Detail |
public final int getNumRow()
getNumRow
in interface org.opengis.referencing.operation.Matrix
public final int getNumCol()
getNumCol
in interface org.opengis.referencing.operation.Matrix
public final double getElement(int row, int col)
getElement
in interface org.opengis.referencing.operation.Matrix
public final void setElement(int row, int col, double value)
setElement
in interface org.opengis.referencing.operation.Matrix
public final void setZero()
setZero
in interface XMatrix
public final void setIdentity()
setIdentity
in interface XMatrix
public final boolean isIdentity()
isIdentity
in interface org.opengis.referencing.operation.Matrix
public final boolean isAffine()
isAffine
in interface XMatrix
public final void negate()
negate
in interface XMatrix
public final void transpose()
transpose
in interface XMatrix
public final void invert()
invert
in interface XMatrix
public final void multiply(org.opengis.referencing.operation.Matrix matrix)
AffineTransform.concatenate
:
first transforms by the supplied transform and then transform the result by the original
transform.
multiply
in interface XMatrix
public boolean equals(java.lang.Object object)
public int hashCode()
public java.lang.String toString()
public java.lang.Object clone()
clone
in interface org.opengis.referencing.operation.Matrix
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |