2022-11-10 19:47:39 +01:00
|
|
|
#ifndef UTILS_H
|
|
|
|
#define UTILS_H
|
|
|
|
|
|
|
|
#include <array>
|
|
|
|
|
|
|
|
namespace utils
|
|
|
|
{
|
|
|
|
bool withinDistance(int startx, int starty, int startz, int x, int y, int z, int dist);
|
|
|
|
int coord3DTo1D(int x, int y, int z, int maxX, int maxY, int maxZ);
|
|
|
|
std::array<int, 3> coord1DTo3D(int idx, int maxX, int maxY, int mazZ);
|
|
|
|
|
|
|
|
}
|
2023-03-23 21:17:06 +01:00
|
|
|
#endif
|