view col.h @ 102:31b24eaf05cc

remove .o
author Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
date Thu, 02 Jun 2011 23:11:44 +0900
parents 0b65ca27f113
children 6ef3b0efdeaf
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;

void col_init(ColFaceHd* hd, PolygonInfo* face);
bool col_detect(ColFaceHd* hd, FVECTOR pose, FVECTOR p);


bool col_detect_approx(FVECTOR p, FVECTOR v0, FVECTOR v1);


#endif