summaryrefslogtreecommitdiff
path: root/src/fl_curve.cxx
diff options
context:
space:
mode:
authorengelsman <engelsman>2008-10-14 21:42:24 +0000
committerengelsman <engelsman>2008-10-14 21:42:24 +0000
commite08fffdfe08bbc9320e39a15d162b6501abd4925 (patch)
treed1c07d448e4ae5a6e250ed2c77bb57ffbb5a4122 /src/fl_curve.cxx
parent7a90386c6d5424715375e11f360afc086376f7f6 (diff)
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
Diffstat (limited to 'src/fl_curve.cxx')
-rw-r--r--src/fl_curve.cxx18
1 files changed, 18 insertions, 0 deletions
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 <FL/fl_draw.H>
#include <math.h>
+/**
+ 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,