#include "UT_API.h"
#include "UT_Assert.h"
#include "UT_Vector3.h"
#include "UT_Vector4.h"
#include <SYS/SYS_Inline.h>
#include <SYS/SYS_Math.h>
#include <SYS/SYS_Types.h>
#include <iosfwd>
#include <limits>
#include <stdio.h>
Go to the source code of this file.
#define UT_FASTBOX |
( |
|
idx | ) |
|
Value:positive = (idir(idx) > 0.0); \
t1 = (vals[idx][ positive] -
v0(idx))*idir(idx); UT_TESTMAX \
t1 = (vals[idx][!positive] -
v0(idx))*idir(idx);
UT_TESTMIN \
Definition at line 953 of file UT_BoundingBox.h.
#define UT_FASTBOX |
( |
|
face | ) |
|
Value:ray = 1.0 / d(face); \
positive = (ray > 0.0);
\
t = (vals[face][ positive] - o(face))*ray;
UT_TESTMAX(face)
\
t = (vals[face][1-positive] - o(face))*ray;
UT_TESTMIN(face) \
Definition at line 953 of file UT_BoundingBox.h.
#define UT_FASTBOX |
( |
|
face | ) |
|
Value:ray = 1.0 / d(face); \
positive = (ray > 0.0);
\
t = (vals[face][1-positive] - o(face))*ray;
UT_TESTMIN \
Definition at line 953 of file UT_BoundingBox.h.
#define UT_TESTMAX tmax = t1 < tmax ? t1 : tmax; |
#define UT_TESTMAX |
( |
|
face | ) |
|
#define UT_TESTMAX if(t < tmax) { if(t < tmin) return 0; tmax = t; } |
#define UT_TESTMIN tmin = t1 > tmin ? t1 : tmin; |
#define UT_TESTMIN |
( |
|
face | ) |
|
#define UT_TESTMIN if(t > tmin) { if(t > tmax) return 0; tmin = t; } |