import { spline3_bezier } from "./spline3_bezier.js";

/**
 *
 * @param {Number} p0
 * @param {Number} p1
 * @param {Number} p2
 * @param {Number} p3
 * @return {function(number): Number}
 */
export function makeCubicCurve(p0, p1, p2, p3) {
    return function (v) {
        return spline3_bezier(v, p0, p1, p2, p3);
    }
}
