summary refs log tree commit diff
path: root/src/Math/Grid.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Math/Grid.hpp')
-rw-r--r--src/Math/Grid.hpp6
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