YZCGPointExtension A library of CGPoint functions to help you easily manipulate CGPoint. Install Simply use CocoaPods: pod 'YZCGPointExtension' Some sample usage /* * */