Atlantis.Rectangle Class
Create a rectangle structure.
Constructor
Item Index
Methods
add
(
-
rectangle
Add a rectangle to this rectangle.
Parameters:
-
rectangle
Atlantis.RectangleThe rectangle to add.
contains
(
-
X
-
Y
Determine if a Rectangle, Point or coordinates are contains in rectangle
contains
()
divide
(
-
rectangle
Divide a rectangle to this rectangle.
Parameters:
-
rectangle
Atlantis.RectangleThe rectangle to divide.
getCenter
()
Atlantis.Point
Gets the center of the rectangle.
Returns:
Atlantis.Point:
A point of the center of the rectangle.
multiply
(
-
rectangle
Multiply a rectangle to this rectangle.
Parameters:
-
rectangle
Atlantis.RectangleThe rectangle to multiply.
subtract
(
-
rectangle
Subtract a rectangle to this rectangle.
Parameters:
-
rectangle
Atlantis.RectangleThe rectangle to subtract.