Class Region
Inheritance
GraphicsObject | Region 🡄 GraphicsObject 🡄 Object |
Methods
addPolygon ( tablewithcoordinates ) | Adds an array of 2D locations. |
addRectangle ( x1, y1, x2, y2 ) | Adds a rectangle to the region. |
Related Functions
createRegion () | Create an empty region. |
Inheritance
- GraphicsObject
- Region 🡄 GraphicsObject 🡄 Object
Methods
- addPolygon ( tablewithcoordinates )
-
Adds an array of 2D locations.
example : {{0,0},{100,100}, {0,100}} for a triangle
Parameters:
- tablewithcoordinates
- addRectangle ( x1, y1, x2, y2 )
-
Adds a rectangle to the region.
Parameters:
- x1
- y1
- x2
- y2