public interface ILcdMultilevelGrid
extends ILcdBounded

Describes a rectangular, axis aligned, uniform, multilevel grid. A grid defines a number of areas which
can be located and expressed using multilevel coordinates. These coordinates may be expressed in any reference.
A multilevel grid has multiple levels, each having a different granularity, based on the level above, designating
smaller areas.
A multilevel grid is defined by:

the extreme points of the grid. These are the points with the highest and lowest coordinates expressed in
the reference on which this grid is based.

the number of levels of the grid,

the number of subdivisions of the grid at each of those levels. The number of subdivisions will define the
granularity of the grid at each level.

Returns the number of levels the grid described consists of.

Returns:

the number of levels the grid described consists of.

getDivisions

intgetDivisions(int aLevel,
int aAxis)

Returns the number of subdivisions in the grid at a given level along a given axis.
The number of subdivisions is given compared to the previous level.

Parameters:

aLevel - the level for which the subdivisions will be returned. Should be smaller than the level count.

aAxis - the axis for which the subdivisions will be returned, either X_AXIS or Y_AXIS.

Returns:

the number of subdivisions in the grid at a given level along a given axis.