src/bezier_curve.h@8d88adffb779
src/bezier_curve.h
Wed, 12 Apr 2023 01:53:42 +0300
- author
- Teemu Piippo <teemu.s.piippo@gmail.com>
- date
- Wed, 12 Apr 2023 01:53:42 +0300
- changeset 379
- 8d88adffb779
- parent 373
-
e34d6a30b96d
- permissions
- -rw-r--r--
Circular primitive type is now an enum class
#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