*******************************************************************************/
+#ifndef _MATH_HH_
+#define _MATH_HH_
+
/**
* @file math.hh
* General math-related types and functions.
*/
-#ifndef _MATH_HH_
-#define _MATH_HH_
-
#include <cmath>
+#include <cml/cml.h>
namespace dc {
-typedef double scalar; ///< Scalar variable.
+typedef double scalar; ///< Scalar variable.
+
+typedef cml::vector2d vector2;
+typedef cml::vector3d vector3;
+typedef cml::vector4d vector4;
+
+typedef cml::matrix33d_c matrix3;
+typedef cml::matrix44d_c matrix4;
+
+typedef cml::quaterniond_p quaternion;
+
+typedef cml::vector4f color;
// Here's a simple way to check the equality of floating-point variables more
} // namespace dc
-
#endif // _MATH_HH_