31 #ifndef _LibCollision_Contact_HPP
32 #define _LibCollision_Contact_HPP
46 constexpr
unsigned long long int unique_pair_from(
unsigned long long int x,
unsigned long long int y) {
47 return x>y ? (
x+y)*(
x+y+1)/2 + y : (
x+y)*(
x+y+1)/2 +
x;
53 template<
class T1,
class T2>
57 static std::string
class_ID() {
return "Contact<" + T1::class_ID() +
", " + T2::class_ID() +
">";}
65 static std::map<unsigned long long int, Contact<T1,T2>*>
_all_map;
98 #include "GranOO3/Collision/Contact.tpp"
Definition: Quaternion.hpp:54
Definition: Vector.hpp:75
constexpr unsigned long long int unique_pair_from(unsigned long long int x, unsigned long long int y)
Definition: Contact.hpp:46
Definition: Common.hpp:198
const T1
Definition: Exprtk.hpp:16489
const T1 const T2
Definition: Exprtk.hpp:16511
x y t t *t x y t t t x y t t t x *y t *t t x *y t *t t x y t t t x y t t t x(y+z)