6 shape_(shape), inside_(inside), outside_(outside) {}
10 return shape_(point) ? inside_(point) : outside_(point);
double operator()(const Vector2D &point) const
Evaluates the function.
Piecewise(const Shape2D &shape, const SpatialDistribution &inside, const SpatialDistribution &outside)
Class constructor.
Piecewise spatial distribution.
Spatial distribution for initial conditions.
Abstract type for a two dimensional shape.