Method: MagicCloud::Rect#adjust!
- Defined in:
- lib/magic_cloud/rect.rb
#adjust!(other) ⇒ Object
41 42 43 44 45 46 |
# File 'lib/magic_cloud/rect.rb', line 41 def adjust!(other) @x0 = other.x0 if other.x0 < @x0 @y0 = other.y0 if other.y0 < @y0 @x1 = other.x1 if other.x1 > @x1 @y1 = other.y1 if other.y1 > @y1 end |