public static class AbstractRotatableNodePlacer.Matrix extends Object
AbstractRotatableNodePlacer
.
Subtrees may be rotated or mirrored. Also, matrices offering a combination of rotation and mirroring are provided.
Modifier and Type | Field and Description |
---|---|
static AbstractRotatableNodePlacer.Matrix |
DEFAULT
The identity matrix which does not apply any rotation or mirroring.
|
static AbstractRotatableNodePlacer.Matrix |
MIR_HOR
A matrix which applies a horizontal mirroring.
|
static AbstractRotatableNodePlacer.Matrix |
MIR_HOR_ROT90
A matrix which applies a horizontal mirroring and a counter-clockwise rotation by 90 degrees.
|
static AbstractRotatableNodePlacer.Matrix |
MIR_VERT
A matrix which applies a vertical mirroring.
|
static AbstractRotatableNodePlacer.Matrix |
MIR_VERT_ROT90
A matrix which applies a vertical mirroring and a counter-clockwise rotation by 90 degrees.
|
static AbstractRotatableNodePlacer.Matrix |
ROT180
A matrix which applies a rotation by 180 degrees.
|
static AbstractRotatableNodePlacer.Matrix |
ROT270
A matrix which applies a counter-clockwise rotation by 270 degrees.
|
static AbstractRotatableNodePlacer.Matrix |
ROT90
A matrix which applies a counter-clockwise rotation by 90 degrees.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equalValues(AbstractRotatableNodePlacer.Matrix other)
Compares the values of the current
AbstractRotatableNodePlacer.Matrix with the values of the given AbstractRotatableNodePlacer.Matrix . |
AbstractRotatableNodePlacer.Matrix |
multiply(AbstractRotatableNodePlacer.Matrix other)
Multiplies this
AbstractRotatableNodePlacer.Matrix with the given other AbstractRotatableNodePlacer.Matrix . |
String |
toString()
Returns a
String representation of this AbstractRotatableNodePlacer.Matrix . |
public static final AbstractRotatableNodePlacer.Matrix DEFAULT
public static final AbstractRotatableNodePlacer.Matrix MIR_HOR
public static final AbstractRotatableNodePlacer.Matrix MIR_HOR_ROT90
public static final AbstractRotatableNodePlacer.Matrix MIR_VERT
public static final AbstractRotatableNodePlacer.Matrix MIR_VERT_ROT90
public static final AbstractRotatableNodePlacer.Matrix ROT180
public static final AbstractRotatableNodePlacer.Matrix ROT270
public static final AbstractRotatableNodePlacer.Matrix ROT90
public boolean equalValues(AbstractRotatableNodePlacer.Matrix other)
AbstractRotatableNodePlacer.Matrix
with the values of the given AbstractRotatableNodePlacer.Matrix
.other
- the matrixtrue
if this matrix and the given other matrix contain the same values, false
otherwisepublic AbstractRotatableNodePlacer.Matrix multiply(AbstractRotatableNodePlacer.Matrix other)
AbstractRotatableNodePlacer.Matrix
with the given other AbstractRotatableNodePlacer.Matrix
.other
- the other matrixpublic String toString()
String
representation of this AbstractRotatableNodePlacer.Matrix
.toString
in class Object
String
representing this AbstractRotatableNodePlacer.Matrix