← Back

ofxCubicSpline

github.com/73-ch/ofxCubicSpline · @73-ch
OF 0.11 Algorithms

Cubic spline interpolation for openFrameworks, a port of Ivan Kuckir's implementation.

3 0 Last commit 6y ago Created 7y ago

README

ofxCubicSpline



This is Ivan Kuckir's cubic spline implementation for openFrameworks and this is also inspired by cubic-spline - npm.

example

How to use



``c++ ofxCubicSpline cubic; vector<glm::vec2> points; // key points points.push_back(glm::vec2(0,225)); points.push_back(glm::vec2(223,15)); // : some points

// :



// setup cubic.setData(points);

// get Y at arbitrary X float y = cubic.at(float x);

``

Get this addon

HTTPS
SSH