Share via


CGAffineTransform Struct

Definition

2D Affine transformation used to convert between coordinate spaces.

public struct CGAffineTransform
type CGAffineTransform = struct
Inheritance
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.

Constructors

Name Description
CGAffineTransform(NFloat, NFloat, NFloat, NFloat, NFloat, NFloat)

Fields

Name Description
A
B
C
D
Tx
Ty

Properties

Name Description
IsIdentity

Determines if the affine corresponds to the identity affine.

x0
xx
xy
y0
yx
yy

Methods

Name Description
CGAffineTransformInvert(CGAffineTransform)

Inverts the affine transformation matrix.

CGRectApplyAffineTransform(CGRect, CGAffineTransform)
Decompose()
Equals(Object)

Compares the objects for equality.

GetHashCode()

The hashcode for this object.

Invert()

Inverts this affine transformation.

MakeIdentity()

Returns the identity affine transformation.

MakeRotation(NFloat)
MakeScale(NFloat, NFloat)
MakeTranslation(NFloat, NFloat)
MakeWithComponents(CGAffineTransformComponents)
Multiply(CGAffineTransform, CGAffineTransform)

Multiplies the two affine transformations and returns the result.

Multiply(CGAffineTransform)

Multiplies the current affine transformation by the specified affine transformation.

Rotate(CGAffineTransform, NFloat)
Rotate(NFloat, MatrixOrder)
Rotate(NFloat)
Scale(CGAffineTransform, NFloat, NFloat)
Scale(NFloat, NFloat, MatrixOrder)
Scale(NFloat, NFloat)
ToString()

Renders the affine in textual form.

TransformPoint(CGPoint)

Transforms the coordinates of the provided point by the affine.

TransformRect(CGRect)

Applies the affine transform to the supplied rectangle and returns the transformed rectangle.

TransformSize(CGSize)
Translate(CGAffineTransform, NFloat, NFloat)
Translate(NFloat, NFloat, MatrixOrder)
Translate(NFloat, NFloat)

Operators

Name Description
Equality(CGAffineTransform, CGAffineTransform)
Inequality(CGAffineTransform, CGAffineTransform)
Multiply(CGAffineTransform, CGAffineTransform)

Applies to