X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftags%2Fstable%2FETL%2F_bezier.h;h=a08a42b466d986835a203306d221f85cc17be398;hb=47fce282611fbba1044921d22ca887f9b53ad91a;hp=0e3ace9f9ec86241ada76f8670a4264b941d4fe1;hpb=613289c772b22989f9f990cf06414d3818b3badd;p=synfig.git diff --git a/ETL/tags/stable/ETL/_bezier.h b/ETL/tags/stable/ETL/_bezier.h index 0e3ace9..a08a42b 100644 --- a/ETL/tags/stable/ETL/_bezier.h +++ b/ETL/tags/stable/ETL/_bezier.h @@ -4,6 +4,7 @@ ** $Id$ ** ** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2007 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -30,7 +31,8 @@ /* === H E A D E R S ======================================================= */ #include "_curve_func.h" -#include +#include // for ldexp +// #include // not used /* === M A C R O S ========================================================= */ @@ -607,7 +609,7 @@ public: */ void subdivide(bezier *left, bezier *right, const time_type &time = (time_type)0.5) const { - time_type t=(t-get_r())/get_dt(); + time_type t=(time-get_r())/get_dt(); bezier lt,rt; value_type temp; @@ -926,7 +928,7 @@ private: /* * NearestPointOnCurve : * Compute the parameter value of the point on a Bezier - * curve segment closest to some arbtitrary, user-input point. + * curve segment closest to some arbitrary, user-input point. * Return the point on the curve at that parameter value. * * value_type& P; The user-supplied point