Top

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.

Returns:

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

Try it:

getHeight

Getter for the height of a rectangle.

Returns:

number - The height of a rectangle.

Try it:

getLeft

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

Returns:

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

Try it:

getRight

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

Returns:

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

Try it:

getTop

Getter for the top of a rectangle.

Returns:

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

Try it:

getWidth

Getter for the width of a rectangle.

Returns:

number - The width of a rectangle.

Try it: