--- branches/development/src/math/CubicSpline.hpp 2013/02/20 15:39:39 1850 +++ branches/development/src/math/CubicSpline.hpp 2013/06/06 15:43:35 1877 @@ -56,8 +56,10 @@ namespace OpenMD { virtual ~CubicSpline() {} void addPoint(const RealType xp, const RealType yp); void addPoints(const vector& xps, const vector& yps); - RealType getValueAt(RealType t); - pair getValueAndDerivativeAt(RealType t); + RealType getValueAt(const RealType& t); + pair getValueAndDerivativeAt(const RealType& t); + void getValueAt(const RealType& t, RealType& v); + void getValueAndDerivativeAt(const RealType& t, RealType& v, RealType& d); private: void generate();