]>
Dogcows Code - chaz/rasterize/blob - contact.hh
3 * CS5600 University of Utah
5 * mcgarvey@eng.utah.edu
15 * A class for a collision contact.
19 vec_t p
; // point of collision
20 vec_t n
; // normal of surface at collision point
21 scal_t d
; // distance along the ray
23 typedef struct contact contact_t
;
26 * Initialize a contact with a point of contact, normal of surface at
27 * contact point, and distance along ray.
30 void contact_init(contact_t
* c
, vec_t point
, vec_t normal
, scal_t distance
)
39 * Create a new contact with a point of contact, normal of surface at
40 * contact point, and distance along ray.
43 contact_t
contact_new(vec_t point
, vec_t normal
, scal_t distance
)
46 contact_init(&c
, point
, normal
, distance
);
51 #endif // _CONTACT_HH_
This page took 0.040151 seconds and 4 git commands to generate.