<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSAffineTransform/transformStruct",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSAffineTransform(py)transformStruct"
  },
  "title" : "transformStruct"
}
-->

# transformStruct

The matrix coefficients stored as the transformation matrix.

```
var transformStruct: NSAffineTransformStruct { get set }
```

## Discussion

The matrix is of the form shown in [Transform Mathematics](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/CocoaDrawingGuide/Transforms/Transforms.html#//apple_ref/doc/uid/TP40003290-CH204-BCIIICJI), and the six-element structure defined by the [`NSAffineTransformStruct`](/documentation/Foundation/NSAffineTransformStruct) structure is of the form:

```objc
{m11, m12, m21, m22, tX, tY}
```

The [`NSAffineTransformStruct`](/documentation/Foundation/NSAffineTransformStruct) structure is an alternate representation of a transformation matrix that can be used to specify matrix values directly.

## See Also

[`init(transform:)`](/documentation/Foundation/NSAffineTransform/init(transform:))

Initializes the receiver’s matrix using another transform object.



---

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)