Method: Geometry::Rectangle#bounds

Defined in:
lib/geometry/rectangle.rb

#boundsRectangle

Returns The smallest axis-aligned Geometry::Rectangle that bounds the receiver.

Returns:



108
109
110
# File 'lib/geometry/rectangle.rb', line 108

def bounds
    return Rectangle.new(self.min, self.max)
end