VIPRA Documentation
Loading...
Searching...
No Matches
VIPRA::Goals::DensityGrid Class Reference

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
 

Member Function Documentation

◆ get_closest_grid_idx()

auto VIPRA::Goals::DensityGrid::get_closest_grid_idx ( VIPRA::f3d pos) const -> VIPRA::idx
inlinenodiscard

Gets the closest grid index to the coordinate.

Parameters
pos
Returns
VIPRA::idx

◆ incr_gridpoint()

void VIPRA::Goals::DensityGrid::incr_gridpoint ( VIPRA::f3d const & pos)
inline

Increments the pedestrian count at the grid index that contains the point.

Parameters
pos
Returns
VIPRA::idx

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