Class Matrix

java.lang.Object
org.verapdf.gf.model.factory.chunks.Matrix
All Implemented Interfaces:
Cloneable

public class Matrix extends Object implements Cloneable
Author:
Maxim Plushchov
  • Constructor Details

    • Matrix

      public Matrix()
    • Matrix

      public Matrix(COSArray array)
    • Matrix

      public Matrix(List<COSBase> arguments)
    • Matrix

      public Matrix(double a, double b, double c, double d, double e, double f)
  • Method Details

    • getValue

      public double getValue(int row, int column)
    • concatenate

      public void concatenate(Matrix matrix)
    • translate

      public void translate(double tx, double ty)
    • scale

      public void scale(double sx, double sy)
    • rotate

      public void rotate(double theta)
    • multiply

      public Matrix multiply(Matrix other)
    • getScaleInstance

      public static Matrix getScaleInstance(double x, double y)
    • getTranslateInstance

      public static Matrix getTranslateInstance(double x, double y)
    • getRotateInstance

      public static Matrix getRotateInstance(double theta, double tx, double ty)
    • concatenate

      public static Matrix concatenate(Matrix a, Matrix b)
    • clone

      public Matrix clone()
      Overrides:
      clone in class Object
    • getScaleX

      public double getScaleX()
    • getShearY

      public double getShearY()
    • getShearX

      public double getShearX()
    • getScaleY

      public double getScaleY()
    • getTranslateX

      public double getTranslateX()
    • getTranslateY

      public double getTranslateY()
    • transformBoundingBox

      public BoundingBox transformBoundingBox(BoundingBox boundingBox)
    • transformX

      public double transformX(double x, double y)
    • transformY

      public double transformY(double x, double y)
    • transformVertex

      public Vertex transformVertex(Vertex v)
    • getRotationDegree

      public double getRotationDegree()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

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

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