Added bi-linear interpolation for getting Z coordinate at any location in the grid.
This commit is contained in:
@@ -9,6 +9,8 @@ namespace grbl {
|
||||
|
||||
struct heightmap {
|
||||
static heightmap from_params(float from_x, float from_y, float to_x, float to_y, float resolution);
|
||||
float get_z_at(float x, float y) const;
|
||||
size_t index_from_coords(float x, float y) const;
|
||||
|
||||
float from_x, from_y;
|
||||
float to_x, to_y;
|
||||
|
||||
Reference in New Issue
Block a user