![]() |
fpmas 1.6
|
#include <grid.h>
Public Types | |
typedef DistanceType | Distance |
typedef PerimeterType | Perimeter |
Generic static Grid range configuration interface.
typedef DistanceType fpmas::model::GridRangeConfig< DistanceType, PerimeterType >::Distance |
Function object used to check if a DiscretePoint is contained into this range, depending on the considered origin.
More precisely, the object must provide a method with the following signature:
This object is notably used by the GridRange::contains() method to compute ranges.
Two classical types of neighborhoods notably use the following distances:
See VonNeumannRange and MooreRange for more details.
typedef PerimeterType fpmas::model::GridRangeConfig< DistanceType, PerimeterType >::Perimeter |
Function object that, considering the GridConfig, returns the point corresponding to the maximum radius of this Range shape, considering the shape is centered on (0, 0).
The final radius can be computed as follow:
This default template does not implement any perimeter, since such a property highly depends on specified GridConfig
. Instead,