GraphPoint
GraphPoint is a library of Swift extensions for using a Cartesian Coordinate System with CGRect. The Cartesian Coordinate System defines the origin as the center point and it uses several mathematical laws to determine angles and points within a CGRect.
For Example:
- Given a CGRect(0, 0, 100, 100)
- The origin would be CGPoint(50, 50)
- A CGPoint(75, 75) would be translated to GraphPoint(25, -25)