namespace anychart.graphics.math Improve this Doc
A namespace of classes of geometric shapes.
Functions Overview
| coordinate() | Constructor method. |
| rect() | Constructor method. |
Classes Overview
| anychart.graphics.math.Coordinate | A class for representing coordinates and positions. |
| anychart.graphics.math.Rect | Rectangle class. |
Functions Description
coordinate
Constructor method.
Params:
| Name | Type | Description |
|---|---|---|
| x | number | Left, defaults to 0. |
| y | number | Top, defaults to 0. |
Returns:
anychart.graphics.math.Coordinate - Coordinate.rect
Constructor method.
Params:
| Name | Type | Description |
|---|---|---|
| x | number | X-coordinate. |
| y | number | Y-coordinate. |
| w | number | Width. |
| h | number | Height. |
Returns:
anychart.graphics.math.Rect - Rectangle.