Class CGAffineTransformComponents


  • public final class CGAffineTransformComponents
    extends org.moe.natj.c.StructObject
    • Constructor Detail

      • CGAffineTransformComponents

        public CGAffineTransformComponents()
      • CGAffineTransformComponents

        protected CGAffineTransformComponents​(org.moe.natj.general.Pointer peer)
      • CGAffineTransformComponents

        public CGAffineTransformComponents​(CGSize scale,
                                           double horizontalShear,
                                           double rotation,
                                           CGVector translation)
    • Method Detail

      • scale

        public CGSize scale()
        initial scaling in X and Y dimensions. {sx,sy} Negative values indicate the image has been flipped in this dimension.
      • setScale

        public void setScale​(CGSize value)
        initial scaling in X and Y dimensions. {sx,sy} Negative values indicate the image has been flipped in this dimension.
      • horizontalShear

        public double horizontalShear()
        shear distortion (sh). Turns rectangles to parallelograms. 0 for no shear. Typically 0.
      • setHorizontalShear

        public void setHorizontalShear​(double value)
        shear distortion (sh). Turns rectangles to parallelograms. 0 for no shear. Typically 0.
      • rotation

        public double rotation()
        Rotation angle in radians about the origin. (t) Sign convention for clockwise rotation may differ between various Apple frameworks based on origin placement. Please see discussion.
      • setRotation

        public void setRotation​(double value)
        Rotation angle in radians about the origin. (t) Sign convention for clockwise rotation may differ between various Apple frameworks based on origin placement. Please see discussion.
      • translation

        public CGVector translation()
        Displacement from the origin (ty, ty)
      • setTranslation

        public void setTranslation​(CGVector value)
        Displacement from the origin (ty, ty)