From e08fffdfe08bbc9320e39a15d162b6501abd4925 Mon Sep 17 00:00:00 2001 From: engelsman Date: Tue, 14 Oct 2008 21:42:24 +0000 Subject: copied more documentation from drawing.dox to {fl_curve,fl_vertex}.cxx git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6430 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_curve.cxx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/fl_curve.cxx') diff --git a/src/fl_curve.cxx b/src/fl_curve.cxx index 9a47a10a3..26750d89b 100644 --- a/src/fl_curve.cxx +++ b/src/fl_curve.cxx @@ -25,6 +25,16 @@ // http://www.fltk.org/str.php // +/** + \file fl_curve.cxx + \brief Utility for drawing Bezier curves, adding the points to the + current fl_begin/fl_vertex/fl_end path. + + Incremental math implementation: + I very much doubt this is optimal! From Foley/vanDam page 511. + If anybody has a better algorithim, please send it! +*/ + // Utility for drawing Bezier curves, adding the points to // the current fl_begin/fl_vertex/fl_end path. // Incremental math implementation: @@ -34,6 +44,14 @@ #include #include +/** + Add a series of points on a Bezier curve to the path. + The curve ends (and two of the points) are at X0,Y0 and X3,Y3. + \param[in] X0,Y0 curve start point + \param[in] X1,Y1 curve control point + \param[in] X2,Y2 curve control point + \param[in] X3,Y3 curve end point +*/ void fl_curve(double X0, double Y0, double X1, double Y1, double X2, double Y2, -- cgit v1.2.3