---
title: "convert(value:from:)"
framework: spatial
role: symbol
role_heading: Instance Method
path: "spatial/coordinatespace3d/convert(value:from:)-7og5p"
---

# convert(value:from:)

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

## Declaration

```swift
func convert<T, Space>(value: T, from sourceCoordinateSpace: Space) throws -> T where T : ProjectiveTransformable3D, Space : CoordinateSpace3D
```

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

Return Value The value converted from the source space to this one.
