18 template <
typename Real>
30 template <
typename Real>
39 std::array<Vector2<Real>, 2>
point;
46 template <
typename Real>
53 auto raResult = raQuery(ray, arc);
54 result.intersect = raResult.intersect;
58 template <
typename Real>
67 auto rcResult = rcQuery(ray, circle);
68 if (rcResult.intersect)
71 result.numIntersections = 0;
72 for (
int i = 0; i < rcResult.numIntersections; ++i)
74 if (arc.Contains(rcResult.point[i]))
76 result.intersect =
true;
77 result.parameter[result.numIntersections]
78 = rcResult.parameter[i];
79 result.point[result.numIntersections++]
86 result.intersect =
false;
87 result.numIntersections = 0;
std::array< Vector2< Real >, 2 > point
Result operator()(Type0 const &primitive0, Type1 const &primitive1)
std::array< Real, 2 > parameter