Class PermutationMatrix
java.lang.Object
org.csstudio.swt.widgets.symbol.util.PermutationMatrix
Permuation matrix used to flip/rotate images
-
Constructor Summary
ConstructorDescriptionPermutationMatrix
(double[][] matrix) PermutationMatrix
(double x1, double y1, double x2, double y2) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static PermutationMatrix
Generate vertical flip [2,2] matrixstatic PermutationMatrix
Generate horizontal flip [2,2] matrixstatic PermutationMatrix
Generate [2,2] identity matrixstatic PermutationMatrix
generateRotationMatrix
(double angleInDegree) Generate rotation [2,2] matrixdouble[][]
int
hashCode()
void
-
Constructor Details
-
PermutationMatrix
public PermutationMatrix(double x1, double y1, double x2, double y2) -
PermutationMatrix
public PermutationMatrix(double[][] matrix)
-
-
Method Details
-
generateIdentityMatrix
Generate [2,2] identity matrix -
generateFlipVMatrix
Generate horizontal flip [2,2] matrix -
generateFlipHMatrix
Generate vertical flip [2,2] matrix -
generateRotationMatrix
Generate rotation [2,2] matrix -
multiply
-
getMatrix
public double[][] getMatrix() -
roundToIntegers
public void roundToIntegers() -
hashCode
public int hashCode() -
equals
-