CG_Labs  2021.2
Namespaces | Functions
interpolation.hpp File Reference
#include <glm/glm.hpp>

Go to the source code of this file.

Namespaces

 interpolation
 

Functions

glm::vec3 interpolation::evalLERP (glm::vec3 const &p0, glm::vec3 const &p1, float const x)
 Linearly interpolate a position between two points. More...
 
glm::vec3 interpolation::evalCatmullRom (glm::vec3 const &p0, glm::vec3 const &p1, glm::vec3 const &p2, glm::vec3 const &p3, float const t, float const x)
 Compute a new position using a Catmull-Rom spline interpolation. More...