<!--
{
  "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/convert(value:to:)-2i668",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:7Spatial17CoordinateSpace3DPAAE7convert5value2toqd__qd___qd_0_tKAA25ProjectiveTransformable3DRd__AaBRd_0_r0_lF"
  },
  "title" : "convert(value:to:)"
}
-->

# convert(value:to:)

Converts a value from this coordinate space to another.

```
func convert<T, Space>(value: T, to targetCoordinateSpace: Space) throws -> T where T : ProjectiveTransformable3D, Space : CoordinateSpace3D
```

## Parameters

`value`

The value the function converts between spaces, given in reference to
this coordinate space.

`targetCoordinateSpace`

The coordinate space that the function transforms the value to.

## Return Value

The value converted to the target coordinate space.

---

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)