summary refs log tree commit diff
path: root/src/Math/Interpolation.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Math/Interpolation.hpp')
-rw-r--r--src/Math/Interpolation.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Math/Interpolation.hpp b/src/Math/Interpolation.hpp
new file mode 100644
index 0000000..9eaf604
--- /dev/null
+++ b/src/Math/Interpolation.hpp
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <functional>
+#include "Common.hpp"
+#include "Grid.hpp"
+
+namespace Math {
+
+float linear_interpolation(Vector<2> val, float left, float right, float pos);
+float bilinear_interpolation(Matrix<2, 2> val, GridCellBoundaries cell, Vector<2> pos);
+float trilinear_interpolation(Matrix<2, 2> val_front, Matrix<2, 2> val_back, CubeCellBoundaries cell, Vector<3> pos);
+
+}
\ No newline at end of file