source file of the GNU LilyPond music typesetter
- (c) 1998--2005 Jan Nieuwenhuizen <janneke@gnu.org>
+ (c) 1998--2006 Jan Nieuwenhuizen <janneke@gnu.org>
*/
-#include <math.h>
-
#include "bezier.hh"
#include "warn.hh"
#include "libc-extension.hh"
Real
Bezier::get_other_coordinate (Axis a, Real x) const
{
- Axis other = Axis ((a +1)%NO_AXES);
+ Axis other = Axis ((a +1) % NO_AXES);
Array<Real> ts = solve_point (a, x);
if (ts.size () == 0)
return iv;
}
+Interval
+Bezier::control_point_extent (Axis a) const
+{
+ Interval ext;
+ for (int i = CONTROL_COUNT; i--;)
+ ext.add_point (control_[i][a]);
+
+ return ext;
+}
+
+
/**
Flip around axis A
*/