<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/CoordinateSpace3D/transform(from:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:7Spatial17CoordinateSpace3DP9transform4fromSo23SPProjectiveTransform3Dax_tKF"
  },
  "title" : "transform(from:)"
}
-->

# transform(from:)

Returns a transform of this coordinate space from the target
coordinate space.

```
func transform(from targetCoordinateSpace: Self) throws -> ProjectiveTransform3D
```

## Parameters

`targetCoordinateSpace`

Another coordinate space.

## Discussion

This method is dedicated for converting between coordinate spaces
of the same type. Implementations may be more efficient than the
general purpose convert functions, but results should be the same.
A default implementation is provided which uses root level conversions.

---

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)