<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSAffineTransform/transform(_:)-41p16",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSAffineTransform(im)transformPoint:"
  },
  "title" : "transform(_:)"
}
-->

# transform(_:)

Applies the receiver’s transform to the specified point and returns the result.

```
func transform(_ aPoint: NSPoint) -> NSPoint
```

## Parameters

`aPoint`

The point in the current coordinate system to which you want to apply the matrix.

## Return Value

The resulting point after applying the receiver’s transformations.

## Discussion

---

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)