Class AffineTransform

    • Constructor Detail

      • AffineTransform

        public AffineTransform()
      • AffineTransform

        public AffineTransform​(float m00,
                               float m10,
                               float m01,
                               float m11,
                               float m02,
                               float m12)
      • AffineTransform

        public AffineTransform​(float[] matrix)
    • Method Detail

      • getType

        public int getType()
      • getScaleX

        public final float getScaleX()
      • getScaleY

        public final float getScaleY()
      • getShearX

        public final float getShearX()
      • getShearY

        public final float getShearY()
      • getTranslateX

        public final float getTranslateX()
      • getTranslateY

        public final float getTranslateY()
      • isIdentity

        public final boolean isIdentity()
      • getMatrix

        public final void getMatrix​(float[] matrix)
      • getDeterminant

        public final float getDeterminant()
      • setTransform

        public final AffineTransform setTransform​(float m00,
                                                  float m10,
                                                  float m01,
                                                  float m11,
                                                  float m02,
                                                  float m12)
      • setToTranslation

        public final AffineTransform setToTranslation​(float mx,
                                                      float my)
      • setToScale

        public final AffineTransform setToScale​(float scx,
                                                float scy)
      • setToShear

        public final AffineTransform setToShear​(float shx,
                                                float shy)
      • setToRotation

        public final AffineTransform setToRotation​(float angle)
      • setToRotation

        public final AffineTransform setToRotation​(float angle,
                                                   float px,
                                                   float py)
      • multiply

        public static final AffineTransform multiply​(AffineTransform tL,
                                                     AffineTransform tR)
        Multiply matrix of two AffineTransform objects.
        Parameters:
        tL - - the AffineTransform object is a multiplicand (left argument)
        tR - - the AffineTransform object is a multiplier (right argument)
        Returns:
        A new AffineTransform object containing the result of [tL] X [tR].
      • concatenate

        public final AffineTransform concatenate​(AffineTransform tR)
        Concatenates the given matrix to this.

        Implementations performs the matrix multiplication:

           [this] = [this] X [tR]
         

        Parameters:
        tR - the right-argument of the matrix multiplication
        Returns:
        this transform for chaining
      • preConcatenate

        public final AffineTransform preConcatenate​(AffineTransform tL)
        Pre-concatenates the given matrix to this.

        Implementations performs the matrix multiplication:

           [this] = [tL] X [this]
         

        Parameters:
        tL - the left-argument of the matrix multiplication
        Returns:
        this transform for chaining
      • transform

        public final AABBox transform​(AABBox src,
                                      AABBox dst)
        Parameters:
        src -
        dst -
        Returns:
        dst for chaining
      • transform

        public final Vertex transform​(Vertex src,
                                      Vertex dst)
        Parameters:
        src -
        dst -
        Returns:
        dst for chaining
      • transform

        public final void transform​(Vertex[] src,
                                    int srcOff,
                                    Vertex[] dst,
                                    int dstOff,
                                    int length)
      • transform

        public final float[] transform​(float[] src,
                                       float[] dst)
        Parameters:
        src - float[2] source of transformation
        dst - float[2] destination of transformation, maybe be equal to src
        Returns:
        dst for chaining
      • transform

        public final void transform​(float[] src,
                                    int srcOff,
                                    float[] dst,
                                    int dstOff)
      • transform

        public final void transform​(float[] src,
                                    int srcOff,
                                    float[] dst,
                                    int dstOff,
                                    int length)
      • transform

        public final Vec2f transform​(Vec2f src,
                                     Vec2f dst)
        Parameters:
        src - source of transformation
        dst - destination of transformation, maybe be equal to src
        Returns:
        dst for chaining
      • transform

        public final Vec3f transform​(Vec3f src,
                                     Vec3f dst)
        Parameters:
        src - source of transformation
        dst - destination of transformation, maybe be equal to src
        Returns:
        dst for chaining
      • deltaTransform

        public final Vertex deltaTransform​(Vertex src,
                                           Vertex dst)
        Parameters:
        src -
        dst -
        Returns:
        return dst for chaining
      • deltaTransform

        public final void deltaTransform​(float[] src,
                                         int srcOff,
                                         float[] dst,
                                         int dstOff,
                                         int length)
      • createTransformedShape

        public final Path2F createTransformedShape​(Path2F src)
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object