-
Notifications
You must be signed in to change notification settings - Fork 0
a2d.Rectangle
Armen edited this page Apr 29, 2012
·
15 revisions
Defined in types.js
|
a2d.Rectangle(topLeft, bottomRight) Rectangle
|
| **[add](#add)** (pos) Moves a rectangle by a position | |
| _boolean_ | **[overlaps](#overlaps)** (other) Checks if this rectangle overlaps another. |
| *a2d.Position* | **[bottomLeft](#bottomLeft)** |
| *a2d.Position* | **[bottomRight](#bottomRight)** |
| *a2d.Position* | **[topLeft](#topLeft)** |
| *a2d.Position* | **[topRight](#topRight)** |
a2d.Rectangle(topLeft, bottomRight)
Rectangle
{a2d.Position} topLeft
{a2d.Position} bottomRight
add (pos)
Moves a rectangle by a position
{a2d.Position} pos
--
{boolean} overlaps (other)
Checks if this rectangle overlaps another.
{a2d.Rectangle} other
{boolean}
true if the rectangles overlap.
{a2d.Position} bottomLeft
-- {a2d.Position} bottomRight
-- {a2d.Position} topLeft
-- {a2d.Position} topRight