A vector package that redefines a few Core Graphics types for SwiftUI's canvas.
Three types are included.
Point2D
(CGPoint
)Vector2D
(CGVector
)PositionalVector2D
(a combination ofCGPoint
andCGVector
)
Main benefits of this package are
- Basic operators are defined. e.g.
+
,*
,==
- Both Imperative and Functional programming options available for many operations.
Point2D
andPositionalVector2D
can draw themselves for easy debugging with theDrawable
protocol.- Clearly laid out DocC Documentation with example use cases.