![]() |
fpmas 1.6
|
#include <grid_load_balancing.h>
Public Member Functions | |
GridDimensions (DiscretePoint origin, DiscretePoint extent) | |
GridDimensions () | |
DiscretePoint | getOrigin () const |
void | setOrigin (const DiscretePoint &point) |
DiscretePoint | getExtent () const |
void | setExtent (const DiscretePoint &point) |
DiscreteCoordinate | width () const |
DiscreteCoordinate | height () const |
Utility class used to describe the shape of a discrete grid.
A grid is described by its origin point and an extent until which the grid extents.
The origin
is included in the grid, while the extent
is not
For example, GridDimensions({0, 0}, {10, 10}) describes a grid where the bottom left corner is at (0, 0), and the top right corner is at (9, 9).
|
inline |
GridDimensions constructor.
origin | origin point of the grid |
extent | point to until which the grid extents |
|
inline |
Default GridDimensions constructor.
|
inline |
Origin of the grid.
|
inline |
Sets the origin of the grid.
|
inline |
Extent of the grid.
|
inline |
Sets the extent of the grid.
|
inline |
Returns the width of the grid, i.e. the count of cells contained in the grid width.
|
inline |
Returns the height of the grid, i.e. the count of cells contained in the grid height.