diff options
| author | Mel <einebeere@gmail.com> | 2024-02-06 02:09:17 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-02-06 02:09:17 +0100 |
| commit | c61e09ce986fa99debea040a7c0ac42749ad8052 (patch) | |
| tree | 177b39f7f692723cb4ace8392349f3f8f0d2192b /src/Math/Grid.hpp | |
| parent | 091bf9e418ffdcf36e1735ed78d544f3d1b86785 (diff) | |
| download | meowcraft-c61e09ce986fa99debea040a7c0ac42749ad8052.tar.zst meowcraft-c61e09ce986fa99debea040a7c0ac42749ad8052.zip | |
Render outlines on currently targeted blocks
Diffstat (limited to 'src/Math/Grid.hpp')
| -rw-r--r-- | src/Math/Grid.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Math/Grid.hpp b/src/Math/Grid.hpp index 8c0c423..e2a5051 100644 --- a/src/Math/Grid.hpp +++ b/src/Math/Grid.hpp @@ -13,7 +13,8 @@ struct GridCellBoundaries { [[nodiscard]] Vector<2> bottom_right() const; }; -GridCellBoundaries grid_cell_for_point(Vector<2> point); +GridCellBoundaries grid_cell_containing_point(Vec2 point, Vec2 cell_size = Vec2(1.0)); +GridCellBoundaries grid_cell_from_point(Vec2 point, Vec2 cell_size = Vec2(1.0)); struct CubeCellBoundaries { Real x1, x2, y1, y2, z1, z2; @@ -30,6 +31,7 @@ struct CubeCellBoundaries { [[nodiscard]] GridCellBoundaries grid_cell() const; }; -CubeCellBoundaries cube_cell_for_point(Vector<3> point); +CubeCellBoundaries cube_cell_containing_point(Vec3 point, Vec3 cell_size = Vec3(1.0)); +CubeCellBoundaries cube_cell_from_point(Vec3 point, Vec3 cell_size = Vec3(1.0)); } \ No newline at end of file |
