CGPoint
extension CGPoint
-
Calculates the straight line distance between two
CGPoint.Declaration
Swift
public func distance(to: CGPoint) -> CGFloat
extension CGPoint
Calculates the straight line distance between two CGPoint.
Swift
public func distance(to: CGPoint) -> CGFloat