X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Fcontact.hh;fp=src%2FMoof%2FContact.hh;h=a14718a64117b5bfcf264dc96de92122993c6ef3;hp=82e049d761f076c9a88b6c25a9b9e24c6087c8f8;hb=831f04d4bc19a390415ac0bbac4331c7a65509bc;hpb=299af4f2047e767e5d79501c26444473bda64c64 diff --git a/src/Moof/Contact.hh b/src/moof/contact.hh similarity index 56% rename from src/Moof/Contact.hh rename to src/moof/contact.hh index 82e049d..a14718a 100644 --- a/src/Moof/Contact.hh +++ b/src/moof/contact.hh @@ -12,29 +12,34 @@ #ifndef _MOOF_CONTACT_HH_ #define _MOOF_CONTACT_HH_ -#include +/** + * \file contact.hh + * Represents a collision between entities. + */ +#include -namespace Mf { + +namespace moof { template -struct Contact +struct contact { - typedef cml::vector< Scalar, cml::fixed > Vector; + typedef moof::vector< scalar, fixed > 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_