view col.h @ 112:5106d8d12ded

Changing Magoroku.cc
author Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
date Thu, 09 Jun 2011 14:59:24 +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