A library of swift extensions for translating between CGRect coordinates and graph coordinates.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources/GraphPoint
Tests/GraphPointTests
Workspace
.gitignore
GraphPoint.podspec
LICENSE
Package.swift
README.md

README.md

GraphPoint

Version Platform

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)