GraphPoint

main

A swift library for using the Cartesian Coordinate System in CGRect.
richardpiazza/GraphPoint

GraphPoint

Swift Package Manager Twitter: @richardpiazza

A Swift implementation of the Cartesian Coordinate System within CGRect.

Installation

GraphPoint is distributed using the Swift Package Manager. To install it into a project, add it as a dependency within your Package.swift manifest:

let package = Package(
    ...
    dependencies: [
        .package(url: "https://github.com/richardpiazza/GraphPoint.git", from: "4.0.0")
    ],
    ...
)

Then import GraphPoint wherever you'd like to use it:

import GraphPoint

Usage

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)

Description

  • Swift Tools 5.0.0

Dependencies

  • None
Last updated: Wed Dec 02 2020 01:02:58 GMT-0500 (GMT-05:00)