class Rect public
A class to represent a rectangle
#add(other) public
combines rectangle with another rectangle
Arguments
- other - another Hokusai::Rect to add.
Returns
Returns a new Hokusai::Rect
#intersect?(other) public
Does this rectangle intersect with (other)?
Arguments
- other - a Hokusai::Rect to compare
Returns
Returns boolean
#includes_y?(y) public
does this rectangle include (y)?
Arguments
- y - a y coordinate
Returns
Returns boolean
#includes_x?(x) public
does this rectangle include (x)?
Arguments
- x - x coordinate
Returns
Returns boolean