19 template <
typename Real>
31 template <
typename Real>
34 public FIQuery<Real, Line2<Real>, Triangle2<Real>>
39 public FIQuery<Real, Line2<Real>, Triangle2<Real>>::Result
53 template <
typename Real>
60 result.intersect = rtQuery(ray, triangle).intersect;
64 template <
typename Real>
70 DoQuery(ray.origin, ray.direction, triangle, result);
71 for (
int i = 0; i < result.numIntersections; ++i)
73 result.point[i] = ray.origin + result.parameter[i] * ray.direction;
78 template <
typename Real>
84 rayDirection, triangle, result);
91 std::array<Real, 2> rayInterval =
92 { (Real)0, std::numeric_limits<Real>::max() };
94 result.parameter = iiQuery(result.parameter, rayInterval).overlap;
Result operator()(Type0 const &primitive0, Type1 const &primitive1)