Mercurial > hg > old > magoroku_racing
annotate col.h @ 91:cb6c6de125dc
halfway
author | Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 26 May 2011 14:44:03 +0900 |
parents | 8edae89a3877 |
children | 0b65ca27f113 |
rev | line source |
---|---|
90
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
1 #ifndef COL_H |
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
2 #define COL_H |
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
3 |
91 | 4 #include "libps2.h" |
5 #include "stdbool.h" | |
6 | |
7 | |
0 | 8 typedef struct detection_face { |
91 | 9 FVECTOR p0; |
10 FVECTOR v0; | |
11 FVECTOR v1; | |
12 FVECTOR normal; | |
0 | 13 } ColFace, *ColFacePtr; |
14 | |
15 typedef struct col_face_handler { | |
16 ColFacePtr colface; | |
17 void* free_addr; | |
18 int facenum; | |
19 } ColFaceHd; | |
20 | |
91 | 21 extern void col_init(ColFaceHd* hd, PolygonInfo* face); |
22 extern bool col_detect(ColFaceHd* hd, FVECTOR pose, FVECTOR p); | |
23 | |
24 | |
25 | |
26 | |
27 bool col_detect_approx(FVECTOR p, FVECTOR v0, FVECTOR v1); | |
90
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
28 |
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
29 |
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
30 #endif |
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
31 |
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
32 //FVECTOR p, FVECTOR v0, FVECTOR v1); |
91 | 33 |