AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated v7 version of this document. Switch to the v8 version to see the up to date information.

class anychart.graphics.math.Rect Improve this Doc

Rectangle class.

Methods Overview

Miscellaneous
getBottom()Getter for the bottom of a rectangle.
getHeight()Getter for the height of a rectangle.
getLeft()Getter for the X-coordinate of the left side of a rectangle.
getRight()Getter for the X-coordinate of the right side of a rectangle.
getTop()Getter for the top of a rectangle.
getWidth()Getter for the width of a rectangle.

Methods Description

getBottom

Getter for the bottom of a rectangle.

Params:

NameTypeDescription
this{anychart.graphics.math.Rect}This param

Returns:

number - The Y-coordinate of the bottom of a rectangle.

getHeight

Getter for the height of a rectangle.

Params:

NameTypeDescription
this{anychart.graphics.math.Rect}This param

Returns:

number - The height of a rectangle.

getLeft

Getter for the X-coordinate of the left side of a rectangle.

Params:

NameTypeDescription
this{anychart.graphics.math.Rect}This param

Returns:

number - The X-coordinate of the left side of a rectangle.

getRight

Getter for the X-coordinate of the right side of a rectangle.

Params:

NameTypeDescription
this{anychart.graphics.math.Rect}This param

Returns:

number - The X-coordinate of the right side of a rectangle.

getTop

Getter for the top of a rectangle.

Params:

NameTypeDescription
this{anychart.graphics.math.Rect}This param

Returns:

number - The Y-coordinate of the top of a rectangle.

getWidth

Getter for the width of a rectangle.

Params:

NameTypeDescription
this{anychart.graphics.math.Rect}This param

Returns:

number - The width of a rectangle.