bfoz / geometry

Geometric primitives for Ruby
https://rubygems.org/gems/geometry
BSD 2-Clause "Simplified" License
47 stars 18 forks source link

Add min, max, and minmax methods to Rectangle #51

Closed bfoz closed 11 years ago

bfoz commented 11 years ago

min returns a Point that's on the Rectangle and closest to the origin max returns a Point that's on the Rectangle and farthest from the origin minmax returns the Array of Points [min, max]