00001 #ifndef __INTEGRATION__ 00002 #define __INTEGRATION__ 00003 00004 #include "cml/cml.h" 00005 #include "logger.h" 00006 00007 #include "FlowGrid.h" 00008 00009 enum IntegrationType 00010 { 00011 INTEGRATION_EULER, 00012 INTEGRATION_RK2, 00013 INTEGRATION_RK4 00014 }; 00015 00016 class Integration 00017 { 00018 public: 00019 00020 00021 static bool integrate(FlowGrid *floatGrid, cml::vector2f &position, cml::vector2f &nextPosition, float stepSize, IntegrationType integrationType, bool direction); 00022 00023 00024 00025 00026 }; 00027 00028 00029 #endif