Reflection Tests (#6) Additional Point.reflection() tests
Reflection Tests (#6)
Additional Point.reflection() tests
Point.reflection()
Swift library for working in two-dimensional coordinate systems.
This library provides structs for Point, Size, and Rect based on the swift standard library. No Foundation or CoreGraphics imports are required.
Point
Size
Rect
Foundation
CoreGraphics
struct Point { var x: Double var y: Double }
struct Size { var width: Double var height: Double }
struct Rect { var origin: Point var size: Size }
This package is distributed using the Swift Package Manager. To install it into a project, add it as a dependency within your Package.swift manifest:
Package.swift
let package = Package( ... dependencies: [ .package(url: "https://github.com/richardpiazza/Swift2D.git", from: "2.1.0") ], ... )
Then import the Swift2D packages wherever you’d like to use it:
import Swift2D
Swift library for working in two-dimensional coordinate systems.
Features
This library provides structs for
Point
,Size
, andRect
based on the swift standard library. NoFoundation
orCoreGraphics
imports are required.Point
Size
Rect
Installation
This package is distributed using the Swift Package Manager. To install it into a project, add it as a dependency within your
Package.swift
manifest:Then import the Swift2D packages wherever you’d like to use it: