Skip to content

2.12 –  Changed `Size2DCollection` to `Collection2D`

Latest
Compare
Choose a tag to compare
@KyNorthstar KyNorthstar released this 16 Nov 22:07
· 2 commits to production since this release
1dbfafd

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 to Collection2D
  • 2.12.1
    • #67 Added distance
  • 2.12.2
    • #68 Made (min/max)X(min/max)Y more useful

Full Changelog: 2.11.0...2.12.2