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:816
GLfloat GLfloat v1
Definition: glcorearb.h:817
if(num_boxed_items<=0)
Definition: UT_RTreeImpl.h:697

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; \
} \
}
ImageBuf OIIO_API min(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
GLdouble t
Definition: glad.h:2397
if(num_boxed_items<=0)
Definition: UT_RTreeImpl.h:697

Definition at line 163 of file UT_BoundingRectImpl.h.