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

# 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 : ProjectiveTransformable3DFloat, Space : CoordinateSpace3DFloat
```

## Parameters

- `value`: The value to convert between spaces, given in reference to this coordinate space.
- `targetCoordinateSpace`: The coordinate space the function transforms the value to.

## Return Value

Return Value The value converted to the target coordinate space.
