njCollisionCheckBB | Japanese
    --|INDEX|->
Checks Collision for 2 Hexahedron

### FORMAT

      #include <Ninja.h>
      Int njCollisionCheckBB(*h1, *h2)
      NJS_BOX *h1
      NJS_BOX *h2

### PARAMETERS

*h1
  Hexahedron object #1 to be collision checked
*h2
  Hexahedron object #2 to be collision checked

### RETURN VALUE

  1: Hit
  0: Not hit

### ERROR VALUE

  None

### FUNCTION

  Checks collision for two hexahedrons.

### EXAMPLE

  Check collision for two hexahedron h1 and h2:

      NJS_BOX h1, h2;

      h1.v[0].x = -150.f; h1.v[0].y =  100.f; h1.v[0].z =  100;
      h1.v[1].x = -150.f; h1.v[1].y =  100.f; h1.v[1].z = -100;
      h1.v[2].x =   50.f; h1.v[2].y =  100.f; h1.v[2].z = -100;
      h1.v[3].x =   50.f; h1.v[3].y =  100.f; h1.v[3].z =  100;
      h1.v[4].x = -150.f; h1.v[4].y = -100.f; h1.v[4].z =  100;
      h1.v[5].x = -150.f; h1.v[5].y = -100.f; h1.v[5].z = -100;
      h1.v[6].x =   50.f; h1.v[6].y = -100.f; h1.v[6].z = -100;
      h1.v[7].x =   50.f; h1.v[7].y = -100.f; h1.v[7].z =  100;

      h2.v[0].x =  -50.f; h2.v[0].y =  100.f; h2.v[0].z =  100;
      h2.v[1].x =  -50.f; h2.v[1].y =  100.f; h2.v[1].z = -100;
      h2.v[2].x =  150.f; h2.v[2].y =  100.f; h2.v[2].z = -100;
      h2.v[3].x =  150.f; h2.v[3].y =  100.f; h2.v[3].z =  100;
      h2.v[4].x =  -50.f; h2.v[4].y = -100.f; h2.v[4].z =  100;
      h2.v[5].x =  -50.f; h2.v[5].y = -100.f; h2.v[5].z = -100;
      h2.v[6].x =  150.f; h2.v[6].y = -100.f; h2.v[6].z = -100;
      h2.v[7].x =  150.f; h2.v[7].y = -100.f; h2.v[7].z =  100;

      njCollisionCheckBB(&h1, &h2);

      Result
      Return value: 1

### NOTES

  NJS_BOX structure (box type)

      typedef struct{
          NJS_POINT3 v[8]; /* hexahedron vertex list */
      } NJS_BOX;

  Corresponding vertices with the vertex list index

### RELATED TOPICS

njCollisionCheckBB |
    --|INDEX|->