AnyChart
API Reference
Still have questions?
Contact support
Top

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.CoordinateA class for representing coordinates and positions.
anychart.graphics.math.RectRectangle class.

Functions Description

coordinate

Constructor method.

Params:

NameTypeDescription
xnumberLeft, defaults to 0.
ynumberTop, defaults to 0.

Returns:

anychart.graphics.math.Coordinate - Coordinate.

rect

Constructor method.

Params:

NameTypeDescription
xnumberX-coordinate.
ynumberY-coordinate.
wnumberWidth.
hnumberHeight.

Returns:

anychart.graphics.math.Rect - Rectangle.