comparison 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
comparison
equal deleted inserted replaced
90:8edae89a3877 91:cb6c6de125dc
1 #ifndef COL_H 1 #ifndef COL_H
2 #define COL_H 2 #define COL_H
3 3
4 #include "libps2.h"
5 #include "stdbool.h"
6
7
4 typedef struct detection_face { 8 typedef struct detection_face {
5 // FVECTOR p0; 9 FVECTOR p0;
6 // FVECTOR v0; 10 FVECTOR v0;
7 // FVECTOR v1; 11 FVECTOR v1;
8 // FVECTOR normal; 12 FVECTOR normal;
9 } ColFace, *ColFacePtr; 13 } ColFace, *ColFacePtr;
10 14
11 typedef struct col_face_handler { 15 typedef struct col_face_handler {
12 ColFacePtr colface; 16 ColFacePtr colface;
13 void* free_addr; 17 void* free_addr;
14 int facenum; 18 int facenum;
15 } ColFaceHd; 19 } ColFaceHd;
16 20
17 extern void col_init(ColFaceHd* hd);//, PolygonInfo* face); 21 extern void col_init(ColFaceHd* hd, PolygonInfo* face);
18 //extern bool col_detect(ColFaceHd* hd); 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);
19 28
20 29
21 #endif 30 #endif
22 31
23 //FVECTOR p, FVECTOR v0, FVECTOR v1); 32 //FVECTOR p, FVECTOR v0, FVECTOR v1);
24 //, FVECTOR pose, FVECTOR p); 33