From c61e09ce986fa99debea040a7c0ac42749ad8052 Mon Sep 17 00:00:00 2001 From: Mel Date: Tue, 6 Feb 2024 02:09:17 +0100 Subject: Render outlines on currently targeted blocks --- src/Math/Grid.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Math/Grid.hpp') 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 -- cgit 1.4.1