VIPRA Documentation
|
Classes | |
struct | GridPoint |
Public Member Functions | |
void | intialize (auto const &map, VIPRA::f_pnt gridSize) |
void | clear_grid () |
auto | get_grid (VIPRA::f3d pos) -> GridPoint & |
auto | get_grid (VIPRA::f3d pos) const -> GridPoint const & |
auto | get_x_count () const -> size_t |
auto | get_y_count () const -> size_t |
auto | get_ped_count_at_idx (VIPRA::idx idx) const -> int |
auto | begin () -> std::vector< GridPoint >::iterator |
auto | end () -> std::vector< GridPoint >::iterator |
void | incr_gridpoint (VIPRA::f3d const &pos) |
Increments the pedestrian count at the grid index that contains the point. | |
auto | get_closest_grid_idx (VIPRA::f3d pos) const -> VIPRA::idx |
Gets the closest grid index to the coordinate. | |
auto | grid_center (VIPRA::f3d pos) const -> VIPRA::f3d |
DensityGrid (const DensityGrid &)=default | |
DensityGrid (DensityGrid &&) noexcept=default | |
auto | operator= (const DensityGrid &) -> DensityGrid &=default |
auto | operator= (DensityGrid &&) noexcept -> DensityGrid &=default |
|
inlinenodiscard |
Gets the closest grid index to the coordinate.
pos |
|
inline |
Increments the pedestrian count at the grid index that contains the point.
pos |