RepastHPC  2.3.1
Public Member Functions | Friends | List of all members
repast::GridDimensions Class Reference

Basic structure for specifying grid dimenions. More...

#include <GridDimensions.h>

Public Member Functions

 GridDimensions (Point< double > extent)
 
 GridDimensions (Point< double > origin, Point< double > extent)
 Creates a GridDimensions with the specified origin and extent.
 
bool contains (const Point< int > &pt) const
 
bool contains (const std::vector< int > &pt) const
 
bool contains (const Point< double > &pt) const
 
bool contains (const std::vector< double > &pt) const
 
const Point< double > & origin () const
 Gets the origin.
 
const Point< double > & extents () const
 Gets the extents along each dimension.
 
const double & origin (int index) const
 
const double & extents (int index) const
 
size_t dimensionCount () const
 

Friends

bool operator== (const GridDimensions &one, const GridDimensions &two)
 
std::ostream & operator<< (std::ostream &os, const GridDimensions &dimensions)
 

Detailed Description

Basic structure for specifying grid dimenions.

Structure is to specify (using instances of Point) the origin and the extent, so that an origin of (-100, -100) and an extent of (200, 200) represents a rectangle with corners at (-100, -100), (-100, 100), (100, 100), and (100, -100).


The documentation for this class was generated from the following files: