Package apple.corefoundation.struct
Class CGAffineTransformComponents
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.c.StructObject
-
- apple.corefoundation.struct.CGAffineTransformComponents
-
public final class CGAffineTransformComponents extends org.moe.natj.c.StructObject
-
-
Constructor Summary
Constructors Modifier Constructor Description CGAffineTransformComponents()CGAffineTransformComponents(CGSize scale, double horizontalShear, double rotation, CGVector translation)protectedCGAffineTransformComponents(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublehorizontalShear()shear distortion (sh).doublerotation()Rotation angle in radians about the origin.CGSizescale()initial scaling in X and Y dimensions.voidsetHorizontalShear(double value)shear distortion (sh).voidsetRotation(double value)Rotation angle in radians about the origin.voidsetScale(CGSize value)initial scaling in X and Y dimensions.voidsetTranslation(CGVector value)Displacement from the origin (ty, ty)CGVectortranslation()Displacement from the origin (ty, ty)
-
-
-
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)
-
-