And We did it without breaking existing code! Woo!
This change makes that protocol more generic, so it can be applied to sizes, rectangles, anything which conforms. By default now, all integer sizes and rectangles gain this behavior which was once available only to sizes.
Part of this was removing the requirement for conforming types to also conform to Size2D
, and creating a new conformance requirement: CartesianMeasurable
. We then changed Size2D
to require CartesianMeasurable
, and that enabled this broadening.
What's Changed
2.12.0
- #66 Changed
Size2DCollection
toCollection2D
- #66 Changed
2.12.1
- #67 Added
distance
- #67 Added
2.12.2
- #68 Made (min/max)X(min/max)Y more useful
Full Changelog: 2.11.0...2.12.2