#include <limits>
Go to the source code of this file.
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; }
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]) \
{ \
found = face; \
} \
}
ImageBuf OIIO_API min(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
Definition at line 163 of file UT_BoundingRectImpl.h.