mmuellersoppart / MAMSVectors

Recreate many of Core Graphic's objects for SwiftUI's Canvas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MAMSVectors

A vector package that redefines a few Core Graphics types for SwiftUI's canvas.

Overview

Three types are included.

  • Point2D (CGPoint)
  • Vector2D (CGVector)
  • PositionalVector2D (a combination of CGPoint and CGVector)

OverviewPicture

Main benefits of this package are

  • Basic operators are defined. e.g. +, *, ==
  • Both Imperative and Functional programming options available for many operations.
  • Point2D and PositionalVector2D can draw themselves for easy debugging with the Drawable protocol.
  • Clearly laid out DocC Documentation with example use cases.

About

Recreate many of Core Graphic's objects for SwiftUI's Canvas


Languages

Language:Swift 100.0%