#ifndef _MOOF_CONTACT_HH_
#define _MOOF_CONTACT_HH_
-#include <Moof/Math.hh>
+/**
+ * \file contact.hh
+ * Represents a collision between entities.
+ */
+#include <moof/math.hh>
-namespace Mf {
+
+namespace moof {
template <int D = 3>
-struct Contact
+struct contact
{
- typedef cml::vector< Scalar, cml::fixed<D> > Vector;
+ typedef moof::vector< scalar, fixed<D> > vector;
- Vector point; // point of contact
- Scalar distance; // distance of penetration
- Vector normal; // normal of surface at point of contact
+ vector point; // point of contact
+ scalar distance; // distance of penetration
+ vector normal; // normal of surface at point of contact
- bool operator < (const Contact& rhs)
+ bool operator < (const contact& rhs)
{
return distance < rhs.distance;
}
};
-} // namespace Mf
+} // namespace moof
#endif // _MOOF_CONTACT_HH_