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