|
HighMap library (C++)
|
Ordered path of grid cell indices. More...
#include <cell_path.hpp>
Public Member Functions | |
| CellPath ()=default | |
| CellPath (const std::vector< glm::ivec2 > &indices) | |
| Construct a path by copying cell indices. | |
| CellPath (std::vector< glm::ivec2 > &&indices) | |
| Construct a path by moving cell indices. | |
| std::vector< glm::ivec2 > & | get_indices () |
| Get the cell indices. | |
| const std::vector< glm::ivec2 > & | get_indices () const |
| Get the cell indices. | |
Ordered path of grid cell indices.
Stores a sequence of 2D integer coordinates (i, j) representing a path through a grid or array.
|
default |
| hmap::CellPath::CellPath | ( | const std::vector< glm::ivec2 > & | indices | ) |
Construct a path by copying cell indices.
| indices | Ordered cell indices. |
| hmap::CellPath::CellPath | ( | std::vector< glm::ivec2 > && | indices | ) |
Construct a path by moving cell indices.
| indices | Ordered cell indices. |
| std::vector< glm::ivec2 > & hmap::CellPath::get_indices | ( | ) |
Get the cell indices.
| const std::vector< glm::ivec2 > & hmap::CellPath::get_indices | ( | ) | const |
Get the cell indices.