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

# convert(value:from:)

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

```
func convert<T, Space>(value: T, from sourceCoordinateSpace: Space) throws -> T where T : ProjectiveTransformable3DFloat, Space : CoordinateSpace3DFloat
```

## Parameters

`value`

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

`sourceCoordinateSpace`

The coordinate space the value is provided
in reference to.

## 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)