Mercurial > hg > old > magoroku_racing.bad
view col.h @ 94:30d89b592bc0
halfway_4
author | Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 26 May 2011 15:04:10 +0900 |
parents | cb6c6de125dc |
children | 0b65ca27f113 |
line wrap: on
line source
#ifndef COL_H #define COL_H #include "libps2.h" #include "stdbool.h" typedef struct detection_face { FVECTOR p0; FVECTOR v0; FVECTOR v1; FVECTOR normal; } ColFace, *ColFacePtr; typedef struct col_face_handler { ColFacePtr colface; void* free_addr; int facenum; } ColFaceHd; extern void col_init(ColFaceHd* hd, PolygonInfo* face); extern bool col_detect(ColFaceHd* hd, FVECTOR pose, FVECTOR p); bool col_detect_approx(FVECTOR p, FVECTOR v0, FVECTOR v1); #endif //FVECTOR p, FVECTOR v0, FVECTOR v1);