The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
Avoid overflow and underflow of `length` and `distance`
2 years ago
- Replace `x * x + y * y` with `hypot(x, y)` (9feb2ead44f320705c89fbb8e3a40baa7e1a1fb7)
- This prevents overflow and underflow during calculating `length` and `distance`. It makes it possible to pass the following tests.
```swift
XCTAssertEqual(CGPoint(x: .greatestFiniteMagnitude, y: 0.0).length, .greatestFiniteMagnitude)
XCTAssertEqual(CGPoint(x: 0.0, y: .leastNonzeroMagnitude).length, .leastNonzeroMagnitude)
```
Support only Swift 5.x
2 years ago
- Quit supporting Carthage
- Xcode today supports SwiftPM.
- Remove `CGAffineTransform * CGPoint` (542c7edf0898827838fc8974ee3a01c32b231805)
- Remove `CGSize * CGAffineTransform` (653bd455aa821da1c96cc3b4d3dcf4a38d884a87)
- Support only Swift 5.0 and later
Swift 4.2 and API improvements
3 years ago
- Swift 4.2 and Xcode 10
- Renamed APIs
- `cos(angleFrom:)` to `cos(from:)`
- `nealyEqual` to `isNealyEqual`
- Support `CGVector`
- Add missing APIs
- New operators
- `*(CGPoint, CGPoint) -> CGPoint`, `/(CGPoint, CGPoint) -> CGPoint`
- `*=(inout CGPoint, CGPoint)`, `/=(inout CGPoint, CGPoint)`
- Operators for mixed types
- Full vector APIs for `CGSize` and `CGVector` same as `CGPoint`
- Remove `CGAffineTransform.inverse`
Fix `cos/angle(from:)` for zero vectors
3 years ago
- Swift 4.2 and Xcode 10
- Renamed APIs
- `cos(angleFrom:)` to `cos(from:)`
- `nealyEqual` to `isNealyEqual`
- Support `CGVector`
- Add missing APIs
- New operators
- `*(CGPoint, CGPoint) -> CGPoint`, `/(CGPoint, CGPoint) -> CGPoint`
- `*=(inout CGPoint, CGPoint)`, `/=(inout CGPoint, CGPoint)`
- Operators for mixed types
- Full vector APIs for `CGSize` and `CGVector` same as `CGPoint`
- Remove `CGAffineTransform.inverse`
## Changes from `0.3.0-beta.2`
- Fix `cos/angle(from:)` for zero vectors
Swift 4.2 and Xcode 10
3 years ago
- Swift 4.2 and Xcode 10
- Renamed APIs
- `cos(angleFrom:)` to `cos(from:)`
- `nealyEqual` to `isNealyEqual`
- Add lacked APIs
- Full vector APIs for `CGSize` same as `CGPoint`
- New operators
- `*(CGPoint, CGPoint) -> CGPoint`, `/(CGPoint, CGPoint) -> CGPoint`
- `*=(inout CGPoint, CGPoint)`, `/=(inout CGPoint, CGPoint)`
- Operators for mixed types
- Remove `CGAffineTransform.inverse`
- Extensions for `CGVector`
Refactored APIs and `CGVector` supports
3 years ago
- Renamed APIs
- `*` to `⊗`
- `cos(angleFrom:)` to `cos(from:)`
- `nealyEqual` to `isNealyEqual`
- Add lacked APIs
- Full vector APIs for `CGSize` same as `CGPoint`
- New operators
- `*(CGPoint, CGPoint) -> CGPoint`, `/(CGPoint, CGPoint) -> CGPoint`
- `*=(inout CGPoint, CGPoint)`, `/=(inout CGPoint, CGPoint)`
- Operators for mixed types
- Remove `CGAffineTransform.inverse`
- Extensions for `CGVector`
Update for Swift 4
4 years ago
- Support Swift 4
- Support swift-tools-version:4.0 for Swift Package Manager
- Support Carthage (iOS, macOS, tvOS, watchOS)