src/bezier_curve.h@530d23cd4e97
src/bezier_curve.h
Thu, 15 Jun 2023 16:18:03 +0300
- author
- Teemu Piippo <teemu.s.piippo@gmail.com>
- date
- Thu, 15 Jun 2023 16:18:03 +0300
- changeset 383
- 530d23cd4e97
- parent 373
-
e34d6a30b96d
- permissions
- -rw-r--r--
Refactor, make selecting elements from the model select the corresponding line from the editor as well
#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