14 #include <glm/glm.hpp>
32 return p0.y + (p1.y - p0.y) * (x - p0.x) / (p1.x - p0.x);
constexpr bool epsilon_equal(T left, T right, T eps=std::numeric_limits< T >::epsilon())
Constexpr comparison function for a user defined epsilon values.
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.
#define QX_PUSH_SUPPRESS_ALL_WARNINGS()
Disable all warnings.
#define QX_POP_SUPPRESS_WARNINGS()
Enable all warnings.