AnyChart
API Reference
Still have questions?
Contact support
Top

namespace anychart.math Improve this Doc

Functions Overview

cycledQueue()Returns a queue with random access by indexes. Default maximum queue length is 256. It dequeues automatically when
rect()Constructor function.

Typedefs Overview

anychart.math.CoordinateObjectType definition for coordinate.

Classes Overview

anychart.math.CycledQueueClass for queues with random access by indexes. Default maximum queue length is 256. It dequeues automatically when
anychart.math.RectDefine rectangle.

Functions Description

cycledQueue

Returns a queue with random access by indexes. Default maximum queue length is 256. It dequeues automatically when the length of the queue reaches that limit. So to get larger queue - set the length limit explicitly.

Params:

NameTypeDescription
lengthLimitnumberThe maximum length of the queue. Defaults to 256.

Returns:

anychart.math.CycledQueue - The queue with random access by indexes.

rect

Constructor function.

Params:

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

Returns:

anychart.math.Rect - Return the rectangle object.