#ifndef _MOOF_MATH_HH_
#define _MOOF_MATH_HH_
-/**
- * \file math.hh
- * General math-related types and functions.
- */
+#include <cmath>
+
+#include <boost/shared_ptr.hpp>
+#include <SDL/SDL_opengl.h>
+
+#include <cml/cml.h>
#if HAVE_CONFIG_H
#include "config.h"
#endif
-#include <cmath>
-
-#include <cml/cml.h>
-#include <SDL/SDL_opengl.h>
#if ENABLE_DOUBLE_PRECISION
typedef GLdouble GLscalar;
#endif
+/**
+ * \file math.hh
+ * General math-related types and functions.
+ */
+
namespace moof {
D b = evaluate<S,D>(state, t, dt * SCALAR(0.5), a);
D c = evaluate<S,D>(state, t, dt * SCALAR(0.5), b);
D d = evaluate<S,D>(state, t, dt, c);
- state.step((a + (b + c) * SCALAR(2.0) + d) * SCALAR(1.0/6.0), dt);
+ state.step((a + (b + c) * SCALAR(2.0) + d) * (SCALAR(1.0)/SCALAR(6.0)), dt);
}