---
title: "convert(_:to:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/physicalmetricsconverter/convert(_:to:)"
---

# convert(_:to:)

Converts a point’s coordinates to physical length measurements in the specified unit.

## Declaration

```swift
@MainActor @preconcurrency func convert(_ point: CGPoint, to unit: UnitLength) -> CGPoint
```

## Return Value

Return Value A point value with physical length measurements, in the given unit

## Discussion

Discussion The point is assumed to be in the coordinate system of the scene that this converter is associated with. If the scene is scaled, the physical measurement will take this scale into account.

## See Also

### Converting a unit length

- [convert(_:from:)](swiftui/physicalmetricsconverter/convert(_:from:).md)
