---
title: "transform(from:)"
framework: spatial
role: symbol
role_heading: Instance Method
path: "spatial/coordinatespace3d/transform(from:)"
---

# transform(from:)

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

## Declaration

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

## Parameters

- `targetCoordinateSpace`: Another coordinate space.

## Discussion

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.
