src/bezier_curve.h@21a5ecbe34e4
src/bezier_curve.h
Tue, 11 Apr 2023 20:27:04 +0300
- author
- Teemu Piippo <teemu.s.piippo@gmail.com>
- date
- Tue, 11 Apr 2023 20:27:04 +0300
- changeset 375
- 21a5ecbe34e4
- parent 373
-
e34d6a30b96d
- permissions
- -rw-r--r--
Simplify signature of updateRenderPreferences
#ifndef BEZIER_CURVE_H
#define BEZIER_CURVE_H
#include "src/basics.h"
struct bezier_curve
{
glm::vec3 points[4];
};
glm::vec3 point_on_bezier_curve(const struct bezier_curve& curve, float t);
glm::vec3 derivate_on_bezier_curve(const struct bezier_curve& curve, float t);
#endif // BEZIER_CURVE_H