convert(_:to:)
Converts a point’s coordinates to physical length measurements in the specified unit.
Declaration
@MainActor @preconcurrency func convert(_ point: CGPoint, to unit: UnitLength) -> CGPointReturn 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.