Method: Geometry::Rectangle#bounds
- Defined in:
- lib/geometry/rectangle.rb
#bounds ⇒ Rectangle
Returns The smallest axis-aligned Geometry::Rectangle that bounds the receiver.
108 109 110 |
# File 'lib/geometry/rectangle.rb', line 108 def bounds return Rectangle.new(self.min, self.max) end |