Structure

NSAffineTransformStruct

A structure that defines the three-by-three matrix that performs an affine transform between two coordinate systems.

Declaration

struct NSAffineTransformStruct

Overview

For more details, see Cocoa Drawing Guide.

Topics

Initializers

init()

Initializes a zero-filled transformation matrix.

init(m11: CGFloat, m12: CGFloat, m21: CGFloat, m22: CGFloat, tX: CGFloat, tY: CGFloat)

Initializes a transformation matrix with the given values.

Instance Properties

var m11: CGFloat

An element of the transform matrix that contributes scaling, rotation, and shear.

var m12: CGFloat

An element of the transform matrix that contributes scaling, rotation, and shear.

var m21: CGFloat

An element of the transform matrix that contributes scaling, rotation, and shear.

var m22: CGFloat

An element of the transform matrix that contributes scaling, rotation, and shear.

var tX: CGFloat

An element of the transform matrix that contributes translation.

var tY: CGFloat

An element of the transform matrix that contributes translation.

See Also

Accessing the Transformation Matrix

var transformStruct: NSAffineTransformStruct

The matrix coefficients stored as the transformation matrix.