Method: Geometry::Rectangle#bounds

Defined in:
lib/geometry/rectangle.rb

#boundsRectangle

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

Returns:



116
117
118
# File 'lib/geometry/rectangle.rb', line 116

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