Class PermutationMatrix
java.lang.Object
org.csstudio.swt.widgets.symbol.util.PermutationMatrix
Permuation matrix used to flip/rotate images
-
Constructor Summary
ConstructorsConstructorDescriptionPermutationMatrix(double[][] matrix) PermutationMatrix(double x1, double y1, double x2, double y2) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PermutationMatrixGenerate vertical flip [2,2] matrixstatic PermutationMatrixGenerate horizontal flip [2,2] matrixstatic PermutationMatrixGenerate [2,2] identity matrixstatic PermutationMatrixgenerateRotationMatrix(double angleInDegree) Generate rotation [2,2] matrixdouble[][]inthashCode()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
-