style cleanup: raytree code

This commit is contained in:
2012-05-15 18:45:20 +00:00
parent 7aa21d677a
commit e79c29a1d6
16 changed files with 441 additions and 464 deletions

View File

@@ -33,25 +33,23 @@
#ifndef __RAYOBJECT_HINT_H__
#define __RAYOBJECT_HINT_H__
#define HINT_RECURSE 1
#define HINT_ACCEPT 0
#define HINT_DISCARD -1
#define HINT_RECURSE 1
#define HINT_ACCEPT 0
#define HINT_DISCARD -1
struct HintBB
{
struct HintBB {
float bb[6];
};
inline int hint_test_bb(HintBB *obj, float *Nmin, float *Nmax)
{
if (bb_fits_inside( Nmin, Nmax, obj->bb, obj->bb+3 ) )
if (bb_fits_inside(Nmin, Nmax, obj->bb, obj->bb + 3) )
return HINT_RECURSE;
else
return HINT_ACCEPT;
}
#if 0
struct HintFrustum
{
struct HintFrustum {
float co[3];
float no[4][3];
};