]>
Dogcows Code - chaz/yoink/blob - src/moof/contact.hh
2 /*] Copyright (c) 2009-2011, Charles McGarvey [*****************************
3 **] All rights reserved.
5 * Distributable under the terms and conditions of the 2-clause BSD license;
6 * see the file COPYING for a complete text of the license.
8 *****************************************************************************/
10 #ifndef _MOOF_CONTACT_HH_
11 #define _MOOF_CONTACT_HH_
13 #include <moof/math.hh>
18 * Represents a collision between entities.
27 typedef moof::vector
< scalar
, fixed
<D
> > vector
;
29 vector point
; // point of contact
30 scalar distance
; // distance of penetration
31 vector normal
; // normal of surface at point of contact
33 bool operator < (const contact
& rhs
)
35 return distance
< rhs
.distance
;
42 #endif // _MOOF_CONTACT_HH_
This page took 0.038243 seconds and 4 git commands to generate.