Template Class BaseRegularGrid
Defined in File regular_grid.hpp
Inheritance Relationships
Base Type
public ciabatta::ciabatta_top< Derived >
Derived Type
public beluga::BaseDenseGrid2< Derived >
(Template Class BaseDenseGrid2)
Class Documentation
-
template<typename Derived, int NDim>
class BaseRegularGrid : public ciabatta::ciabatta_top<Derived> Regularly spaced N dimensional grid base type.
When instantiated, it satisfies Beluga named requirements: RegularGrid.
- Template Parameters:
Derived – Concrete regular grid type. It must define
Derived::resolution()
, as described in Beluga named requirements: RegularGrid.NDim – Dimension of the grid.
Subclassed by beluga::BaseDenseGrid2< Derived >
Public Functions
-
inline Eigen::Vector<int, NDim> cell_near(const Eigen::Vector<double, NDim> &p) const
Compute nearest grid cell coordinates given plane coordinates.
Note this is a surjective function.
- Parameters:
p – Plane coordinates.
- Returns:
Grid cell coordinates.