00001 /**************************************************************************** 00002 * Copyright 2005 Evan Drumwright 00003 * This library is distributed under the terms of the GNU General Public 00004 * License (found in COPYING). 00005 ****************************************************************************/ 00006 00007 #ifndef _INTEGRATOR_H 00008 #define _INTEGRATOR_H 00009 00010 #include <Physsim/Base.h> 00011 #include <Physsim/VectorN.h> 00012 00013 namespace Physsim { 00014 00016 class Integrator : public Base 00017 { 00018 public: 00019 virtual ~Integrator() {} 00020 00022 00029 virtual VectorN integrate(const VectorN& x, VectorN (*f)(const VectorN&, Real, void*), Real time, Real step_size, void* data) = 0; 00030 }; 00031 } 00032 00033 #endif 00034
1.5.1