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