CGPoint
extension CGPoint
-
Returns the distance between two points.
Declaration
Swift
public func distance(to point: CGPoint) -> CGFloatParameters
pointThe point to which to calculate the distance.
Return Value
The distance between self and another point.
View on GitHub
Install in Dash
CGPoint Extension Reference