API Docs for: 1.0.1

Grape.AABB Class

An interface for axis-aligned bounding box methods. All methods are abstract.

Methods

getBottom

() Number

Returns the bottom axis.

Returns:

Number:

the bottom axis

getBounds

() Object

Gets the left, right, top, bottom coordinates at once.

Returns:

Object:

The bounding box coordinates, should contain "left", "right", "top" and "bottom" properties

getHeight

() Number

Returns the height (bottom - top).

Returns:

Number:

the height, should be bottom - top

getLeft

() Number

Returns the left axis.

Returns:

Number:

the left axis

getRight

() Number

Returns the right axis.

Returns:

Number:

the right axis

getTop

() Number

Returns the top axis.

Returns:

Number:

the top axis

getWidth

() Number

Returns the width (right - left).

Returns:

Number:

the width, should be right - left