Class MRPHelpers::Rect
In: mrplot/helpers.rb
Parent: Object

Methods

cut   cut!   extend   extend!   extent   fromsize   height   new   to_s   width   x   x2   y   y2  

Included Modules

DeepCopy

Attributes

origin  [R] 
size  [R] 

Public Class methods

Creates a rect with origin at 0,0

Public Instance methods

Cut a border from a rect

Extends the rect by a border

The extent is the second point of the rect (x+width, y+height)

[Validate]