<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:7Spatial17CoordinateSpace3DP"
  },
  "title" : "CoordinateSpace3D"
}
-->

# CoordinateSpace3D

A type that represents a coordinate space which you can use to convert
values to and from other coordinate spaces.

```
protocol CoordinateSpace3D
```

## Topics

### Associated Types

[`associatedtype AncestorCoordinateSpace : CoordinateSpace3D`](/documentation/Spatial/CoordinateSpace3D/AncestorCoordinateSpace)

### Instance Properties

[`var ancestorSpace: Self.AncestorCoordinateSpace?`](/documentation/Spatial/CoordinateSpace3D/ancestorSpace)

An ancestor coordinate space.

### Instance Methods

[`func ancestorFromSpaceTransform() throws -> ProjectiveTransform3D`](/documentation/Spatial/CoordinateSpace3D/ancestorFromSpaceTransform())

This space’s transform relative to its ancestor.

[`func convert<T>(value: T, from: Self) throws -> T`](/documentation/Spatial/CoordinateSpace3D/convert(value:from:)-3zi9f)

Converts a value from a source coordinate space to this one.

[`func convert<T, Space>(value: T, from: Space) throws -> T`](/documentation/Spatial/CoordinateSpace3D/convert(value:from:)-7og5p)

Converts a value from a source coordinate space to this one.

[`func convert<T, Space>(value: T, to: Space) throws -> T`](/documentation/Spatial/CoordinateSpace3D/convert(value:to:)-2i668)

Converts a value from this coordinate space to another.

[`func convert<T>(value: T, to: Self) throws -> T`](/documentation/Spatial/CoordinateSpace3D/convert(value:to:)-u2a0)

Converts a value from this coordinate space to another.

[`func transform(from: Self) throws -> ProjectiveTransform3D`](/documentation/Spatial/CoordinateSpace3D/transform(from:))

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

[`func transformSpace((Self) -> ProjectiveTransform3D) -> some CoordinateSpace3D`](/documentation/Spatial/CoordinateSpace3D/transformSpace(_:))

Returns a modified version of the coordinate space.

### Type Properties

[`static var worldReference: WorldReferenceCoordinateSpace`](/documentation/Spatial/CoordinateSpace3D/worldReference)

A coordinate space that represents the world root for all other coordinate
spaces.

## Relationships

### Inherited By

[`CoordinateSpace3DFloat`](/documentation/Spatial/CoordinateSpace3DFloat)

### Conforming Types

[`WorldReferenceCoordinateSpace`](/documentation/Spatial/WorldReferenceCoordinateSpace)

---

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)