Class PermutationMatrix

java.lang.Object
org.csstudio.swt.widgets.symbol.util.PermutationMatrix

public class PermutationMatrix extends Object
Permuation matrix used to flip/rotate images
  • Constructor Details

    • PermutationMatrix

      public PermutationMatrix(double x1, double y1, double x2, double y2)
    • PermutationMatrix

      public PermutationMatrix(double[][] matrix)
  • Method Details

    • generateIdentityMatrix

      public static PermutationMatrix generateIdentityMatrix()
      Generate [2,2] identity matrix
    • generateFlipVMatrix

      public static PermutationMatrix generateFlipVMatrix()
      Generate horizontal flip [2,2] matrix
    • generateFlipHMatrix

      public static PermutationMatrix generateFlipHMatrix()
      Generate vertical flip [2,2] matrix
    • generateRotationMatrix

      public static PermutationMatrix generateRotationMatrix(double angleInDegree)
      Generate rotation [2,2] matrix
    • multiply

      public PermutationMatrix multiply(PermutationMatrix pm)
    • getMatrix

      public double[][] getMatrix()
    • roundToIntegers

      public void roundToIntegers()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object