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

Classes

struct  GridPoint
 

Public Member Functions

void intialize (auto const &map, VIPRA::f_pnt gridSize)
 
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 begin () -> std::vector< GridPoint >::iterator
 
auto end () -> std::vector< GridPoint >::iterator
 
void flood_fill (VIPRA::f3d start, auto const &map)
 
void flood_fill (VIPRA::f3d start, auto const &map, DensityGrid const &densityGrid)
 
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
 
 Grid (const Grid &)=default
 
 Grid (Grid &&) noexcept=default
 
auto operator= (const Grid &) -> Grid &=default
 
auto operator= (Grid &&) noexcept -> Grid &=default
 

Member Function Documentation

◆ get_closest_grid_idx()

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

Gets the closest grid index to the coordinate.

Parameters
pos
Returns
VIPRA::idx

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