<!--
{
  "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:from:)-3zi9f",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:7Spatial17CoordinateSpace3DPAAE7convert5value4fromqd__qd___xtKAA25ProjectiveTransformable3DRd__lF"
  },
  "title" : "convert(value:from:)"
}
-->

# convert(value:from:)

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

```
func convert<T>(value: T, from targetCoordinateSpace: Self) throws -> T where T : ProjectiveTransformable3D
```

## Parameters

`value`

The value the function converts between spaces given in reference to
the `sourceCoordinateSpace`.

## Return Value

The value converted from the source space to this one.

---

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)