13 QX_PUSH_SUPPRESS_ALL_WARNINGS();
14 #include <glm/glm.hpp>
15 QX_POP_SUPPRESS_WARNINGS();
32 return p0.y + (p1.y - p0.y) * (x - p0.x) / (p1.x - p0.x);
double bilinear_interpolation(const glm::dvec3 &p0, const glm::dvec3 &p1, const glm::dvec3 &p2, const glm::dvec3 &p3, const glm::dvec2 &p)
Bilinear interpolation algorithm.
double linear_interpolation(const glm::dvec2 &p0, const glm::dvec2 &p1, double x)
Linear interpolation algorithm.
constexpr bool epsilon_equal(T left, T right, T eps=std::numeric_limits< T >::epsilon())
Constexpr comparison function for a user defined epsilon values.