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