public static enum R3x3.POS extends java.lang.Enum<R3x3.POS>
R3x3
matrix element. Also provides some
convenience functions for accessing these R3x3
elements.Modifier and Type | Method and Description |
---|---|
int |
col()
return the column index of the matrix position
|
double |
getColDiag(R3x3 matTarget)
Get the diagonal element in the same column as this element position.
|
static java.util.EnumSet<R3x3.POS> |
getDiagonal()
Return the set of all matrix element positions along the
diagonal.
|
static java.util.EnumSet<R3x3.POS> |
getLowerTriangle()
Return the set of all element positions below the matrix
diagonal.
|
static java.util.EnumSet<R3x3.POS> |
getOffDiagonal()
Return the set of all off-diagonal matrix positions.
|
double |
getRowDiag(R3x3 matTarget)
Get the diagonal element in the same row as this element position.
|
static java.util.EnumSet<R3x3.POS> |
getUpperTriangle()
Returns the set of all element positions above the matrix
diagonal.
|
double |
getValue(R3x3 matTarget)
Return the matrix element value for this position
|
int |
row()
return the row index of the matrix position
|
void |
setColDiag(R3x3 matTarget,
double s)
Set the diagonal element in the same column as this element position.
|
void |
setRowDiag(R3x3 matTarget,
double s)
Set the diagonal element in the same row as this element position.
|
void |
setValue(R3x3 matTarget,
double s)
Set matrix element value for this position
|
R3x3.POS |
transpose()
Return the
Position object representing the
transpose element of this position. |
static R3x3.POS |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static R3x3.POS[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final R3x3.POS XY
public static final R3x3.POS XZ
public static final R3x3.POS YZ
public static final R3x3.POS XX
public static final R3x3.POS YY
public static final R3x3.POS ZZ
public static final R3x3.POS YX
public static final R3x3.POS ZX
public static final R3x3.POS ZY
public static R3x3.POS[] values()
for (R3x3.POS c : R3x3.POS.values()) System.out.println(c);
public static R3x3.POS valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int row()
public int col()
public R3x3.POS transpose()
Position
object representing the
transpose element of this position.
NOTE:
The current implementation is slow.public static java.util.EnumSet<R3x3.POS> getUpperTriangle()
public static java.util.EnumSet<R3x3.POS> getDiagonal()
public static java.util.EnumSet<R3x3.POS> getLowerTriangle()
public static java.util.EnumSet<R3x3.POS> getOffDiagonal()
public double getValue(R3x3 matTarget)
matTarget
- target matrixpublic double getRowDiag(R3x3 matTarget)
matTarget
- target matrixpublic double getColDiag(R3x3 matTarget)
matTarget
- target matrixpublic void setValue(R3x3 matTarget, double s)
matTarget
- target matrixs
- new value for matrix elementpublic void setRowDiag(R3x3 matTarget, double s)
matTarget
- target matrixs
- new value for matrix elementpublic void setColDiag(R3x3 matTarget, double s)
matTarget
- target matrixs
- new value for matrix element