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

Public Member Functions

VIPRA_INLINE auto node_count () const noexcept -> size_t
 
auto neighbors (VIPRA::idx gridIdx) const noexcept -> std::array< VIPRA::idx, 8 >
 
VIPRA_INLINE auto pos (VIPRA::idx gridIdx) const noexcept -> VIPRA::f3d
 
auto get_closest_grid_idx (VIPRA::f3d position) const noexcept -> VIPRA::idx
 Gets the closest grid index to the coordinate.
 
 PathingGraph (Modules::Map const &map, VIPRA::f_pnt gridSize, VIPRA::f_pnt closestObstacle)
 
 PathingGraph (const PathingGraph &)=default
 
 PathingGraph (PathingGraph &&)=default
 
auto operator= (const PathingGraph &) -> PathingGraph &=default
 
auto operator= (PathingGraph &&) -> PathingGraph &=default
 

Member Function Documentation

◆ get_closest_grid_idx()

auto VIPRA::Goals::PathingGraph::get_closest_grid_idx ( VIPRA::f3d position) const -> VIPRA::idx
inlinenodiscardnoexcept

Gets the closest grid index to the coordinate.

Parameters
pos
Returns
VIPRA::idx

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