**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+** 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
}
};
+#ifdef ANGLES_USE_LINEAR_INTERPOLATION
template <>
struct is_angle_type<Angle>
{
return true;
}
};
+#endif // ANGLES_USE_LINEAR_INTERPOLATION
/* === G L O B A L S ======================================================= */
const Real& c(iter->get_continuity()); // Continuity
const Real& b(iter->get_bias()); // Bias
- // The folloing line works where the previous line fails.
+ // The following line works where the previous line fails.
value_type Pp; Pp=curve_list.back().second.p1(); // P_{i-1}
const value_type& Pc(curve.second.p1()); // P_i
value_type Pn; Pn=after_next->get_value().get(T()); // P_{i+1}
// TCB
- value_type vect(static_cast<value_type>(subtract_func(Pc,Pp)*(((1.0-t)*(1.0-c)*(1.0+b))/2.0)+(Pn-Pc)*(((1.0-t)*(1.0+c)*(1.0-b))/2.0)));
+ value_type vect(static_cast<value_type>(subtract_func(Pc,Pp) * (((1.0-t)*(1.0-c)*(1.0+b))/2.0) +
+ (Pn-Pc) * (((1.0-t)*(1.0+c)*(1.0-b))/2.0)));
// Tension Only
//value_type vect((value_type)((Pn-Pp)*(1.0-t)));