<!--
{
  "documentType" : "article",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/transforms",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Transforms"
}
-->

# Transforms

Define transform matrices to apply affine transformations to layers in Core Animation.

## Topics

### Creating Transforms

[`CATransform3DMakeTranslation`](/documentation/QuartzCore/CATransform3DMakeTranslation(_:_:_:))

Returns a transform that translates by `(tx, ty, tz)`.

[`CATransform3DMakeScale`](/documentation/QuartzCore/CATransform3DMakeScale(_:_:_:))

Returns a transform that scales by `(sx, sy, sz)`.

[`CATransform3DMakeRotation`](/documentation/QuartzCore/CATransform3DMakeRotation(_:_:_:_:))

Returns a transform that rotates by `angle` radians about the vector `(x, y, z)`.

### Chaining Transforms

[`CATransform3DConcat`](/documentation/QuartzCore/CATransform3DConcat(_:_:))

Concatenates `b` to `a` and returns the result: `t = a * b`.

[`CATransform3DTranslate`](/documentation/QuartzCore/CATransform3DTranslate(_:_:_:_:))

Translates `t` by `(tx, ty, tz)` and returns the result: `t` `= translate(tx, ty, tz) * t`.

[`CATransform3DScale`](/documentation/QuartzCore/CATransform3DScale(_:_:_:_:))

Scales `t` by `(sx, sy, sz)` and returns the result: `t = scale(sx, sy, sz) * t`.

[`CATransform3DRotate`](/documentation/QuartzCore/CATransform3DRotate(_:_:_:_:_:))

Rotates `t` by `angle` radians about the vector `(x, y, z)` and returns the result.

### Inverting a Transform

[`CATransform3DInvert`](/documentation/QuartzCore/CATransform3DInvert(_:))

Inverts `t` and returns the result.

### Determining Transform Properties

[`CATransform3DIsAffine`](/documentation/QuartzCore/CATransform3DIsAffine(_:))

Returns a Boolean value that indicates whether a transform can be exactly represented by an affine transform.

[`CATransform3DIsIdentity`](/documentation/QuartzCore/CATransform3DIsIdentity(_:))

Returns a Boolean value that indicates whether the transform is the identity transform.

[`CATransform3DEqualToTransform`](/documentation/QuartzCore/CATransform3DEqualToTransform(_:_:))

Returns a Boolean value that indicates whether the two transforms are exactly equal.

### Converting to and from Core Graphics Affine Transforms

[`CATransform3DMakeAffineTransform`](/documentation/QuartzCore/CATransform3DMakeAffineTransform(_:))

Returns a transform with the same effect as affine transform `m`.

[`CATransform3DGetAffineTransform`](/documentation/QuartzCore/CATransform3DGetAffineTransform(_:))

Returns the affine transform represented by `t`.

### Data Types

[`CATransform3D`](/documentation/QuartzCore/CATransform3D)

The standard transform matrix used throughout Core Animation.

### Constants

[`CATransform3DIdentity`](/documentation/QuartzCore/CATransform3DIdentity)

The identity transform: `[1 0 0 0; 0 1 0 0; 0 0 1 0; 0 0 0 1]`.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)