iOS Guides | Samples

CoreGraphics.CGAffineTransform Structure

2D Affine transformation used to convert between coordinate spaces.

See Also: CGAffineTransform

Syntax

public struct CGAffineTransform

Remarks

An affine transformation uses a matrix to transform poitns between coordinate spaces.

These transformation can be used to rotate, scale, shear and translate points and rectangles from one coordinate system into another.

Requirements

Namespace: CoreGraphics
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of CoreGraphics.CGAffineTransform are listed below.

See Also: ValueType

Public Constructors

Initializes an affine transformation from the matrix values.

Public Fields

x0nfloat. X translation component of the affine transform.
xxnfloat. XX component of the affine.
xynfloat. XY component of the affine.
y0nfloat. Y translation component of the affine transformation.
yxnfloat. YX component of the affine.
yynfloat. YY component of the affine.

Public Properties

[read-only]
IsIdentityBoolean. Determines if the affine corresponds to the identity affine.

Public Methods

static
CGAffineTransformInvert(CGAffineTransform) : CGAffineTransform
Inverts the affine transformation matrix.
static
CGRectApplyAffineTransform(CGAffineTransform, CGRect) : CGRect
Applies an affine transformation to a rectangle.
override
Equals(Object) : Boolean
Compares the objects for equality.
override
GetHashCode() : Int32
The hashcode for this object.
Invert() : CGAffineTransform
Inverts this affine transformation.
static
MakeIdentity() : CGAffineTransform
Returns the identity affine transformation.
static
MakeRotation(nfloat) : CGAffineTransform
Returns an affine transformation for the requested rotation angle, in radians.
static
MakeScale(nfloat, nfloat) : CGAffineTransform
Returns the affine transformation for the requested scaling in the X and Y coordinates.
static
MakeTranslation(nfloat, nfloat) : CGAffineTransform
Return the affine transformation for translating to the requested location.
Multiply(CGAffineTransform)
Multiplies the current affine transformation by the specified affine transformation.
static
Multiply(CGAffineTransform, CGAffineTransform) : CGAffineTransform
Multiplies the two affine transformations and returns the result.
Rotate(nfloat)
Applies a rotation to the affine by the specified angle, in radians.
static
Rotate(CGAffineTransform, nfloat) : CGAffineTransform
Applies a rotation to the affine by the specified angle, in radians.
Scale(nfloat, nfloat)
Modify the affine to scale by the specified magnitudes.
static
Scale(CGAffineTransform, nfloat, nfloat) : CGAffineTransform
Scales the affine by the specified magnitudes and returns the result.
override
ToString() : String
Renders the affine in textual form.
TransformPoint(CGPoint) : CGPoint
Transforms the coordinates of the provided point by the affine.
TransformRect(CGRect) : CGRect
Applies the affine transform to the supplied rectangle and returns the transformed rectangle.
TransformSize(CGSize) : CGSize
Translate(nfloat, nfloat)
Translates the affine transform by modifying every X value by the supplied X parameter and every Y value by the supplied Y parameter.
static
Translate(CGAffineTransform, nfloat, nfloat) : CGAffineTransform
Translates the affine transform by modifying every X value by the supplied X parameter and every Y value by the supplied Y parameter.

Public Operators

static
Equality(CGAffineTransform, CGAffineTransform)Operator overload, compares two affines.
static
Inequality(CGAffineTransform, CGAffineTransform)Compares affines for inequality.
static
Multiply(CGAffineTransform, CGAffineTransform)Multiplies the two affine transformations and returns a new affine with the result.