---
title: "convert(value:to:)"
framework: spatial
role: symbol
role_heading: Instance Method
path: "spatial/coordinatespace3d/convert(value:to:)-2i668"
---

# convert(value:to:)

Converts a value from this coordinate space to another.

## Declaration

```swift
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

Return Value The value converted to the target coordinate space.
