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