Class Transform.SingleTransform

  • Enclosing class:
    Transform

    public static class Transform.SingleTransform
    extends java.lang.Object
    This class is used to store one transform function.
    • Field Detail

      • a

        private float a
      • b

        private float b
      • c

        private float c
      • d

        private float d
    • Constructor Detail

      • SingleTransform

        public SingleTransform​(float a,
                               float b,
                               float c,
                               float d,
                               UnitValue tx,
                               UnitValue ty)
        Creates a Transform.SingleTransform instance.
        Parameters:
        a - horizontal scaling
        b - vertical skewing
        c - horizontal skewing
        d - vertical scaling
        tx - horizontal translation
        ty - vertical translation
    • Method Detail

      • getFloats

        public float[] getFloats()
        Gets an array of values corresponding to transformation, i.e. scaling and skewing.
        Returns:
        an array of floats
      • getUnitValues

        public UnitValue[] getUnitValues()
        Gets an array of values corresponding to translation.
        Returns:
        an array of UnitValue-s