HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_BoundingRectImpl.h File Reference
#include <limits>
+ Include dependency graph for UT_BoundingRectImpl.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FASTBOX(idx)
 
#define TESTFACE(face, min, face1)
 

Macro Definition Documentation

#define FASTBOX (   idx)
Value:
ray = T(1.0) / (v1(idx) - v0(idx)); \
positive = (ray > T(0.0)); \
t1 = (vals[idx][ positive] - v0(idx))*ray; \
if (t1 < tmax) { if (t1 < tmin) return 0; else tmax = t1; } \
t1 = (vals[idx][1-positive] - v0(idx))*ray; \
if (t1 > tmin) { if (t1 > tmax) return 0; else tmin = t1; }
GLfloat v0
Definition: glcorearb.h:815
GLfloat GLfloat v1
Definition: glcorearb.h:816
if(rank==1) return rank

Definition at line 16 of file UT_BoundingRectImpl.h.

#define TESTFACE (   face,
  min,
  face1 
)
Value:
t = (vals[face][min] - o(face)) * invd(face); \
if (t >= (T)0 && t < tmin) \
{ \
t1 = o(face1) + t*d(face1); \
if (t1 >= vals[face1][0] && t1 <= vals[face1][1]) \
{ \
tmin = t; \
found = face; \
} \
}
if(rank==1) return rank
const std::enable_if<!VecTraits< T >::IsVec, T >::type & min(const T &a, const T &b)
Definition: Composite.h:129

Definition at line 163 of file UT_BoundingRectImpl.h.