<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/PhysicalMetricsConverter/convert(_:to:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI24PhysicalMetricsConverterV7convert_2toSo7CGPointVAG_So12NSUnitLengthCtF::OverloadGroup"
  },
  "title" : "convert(_:to:)"
}
-->

# convert(_:to:)

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

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

## Return Value

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

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

---

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)