]> git.sesse.net Git - kdenlive/blob - src/onmonitoritems/rotoscoping/nearestpoint.h
rotoscoping: allow adding new points to the spline
[kdenlive] / src / onmonitoritems / rotoscoping / nearestpoint.h
1 /*
2 Solving the Nearest Point-on-Curve Problem 
3 and
4 A Bezier Curve-Based Root-Finder
5 by Philip J. Schneider
6 from "Graphics Gems", Academic Press, 1990
7 */
8
9 #ifndef NEARESTPOINT_GGMS_H
10 #define NEARESTPOINT_GGMS_H
11
12 #include "graphicsgems.h"
13
14 extern "C"
15 {
16 Point2 NearestPointOnCurve(Point2 P, Point2 *V, double *tOut);
17 }
18
19 #endif