<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/AffineTransform3D/changeBasis(from:to:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:So19SPAffineTransform3Da7SpatialE11changeBasis4from2toABSgAB_ABtF"
  },
  "title" : "changeBasis(from:to:)"
}
-->

# changeBasis(from:to:)

Returns a new affine transform structure by applying a change-of-basis.

```
func changeBasis(from: AffineTransform3D = .identity, to: AffineTransform3D) -> AffineTransform3D?
```

---

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)