16 template <
int N,
typename Real>
19 public DCPQuery<Real, Vector<N, Real>, AlignedBox<N, Real>>
24 public DCPQuery<Real, Vector<N, Real>, AlignedBox<N, Real>>::Result
34 template <
int N,
typename Real>
38 template <
typename Real>
41 template <
typename Real>
45 template <
int N,
typename Real>
54 for (
int i = 0; i < N; ++i)
56 closest[i] =
Dot(diff, box.axis[i]);
60 this->DoQuery(closest, box.extent, result);
63 result.boxClosest = box.center;
64 for (
int i = 0; i < N; ++i)
66 result.boxClosest += closest[i] * box.axis[i];
Result operator()(Type0 const &primitive0, Type1 const &primitive1)
DualQuaternion< Real > Dot(DualQuaternion< Real > const &d0, DualQuaternion< Real > const &d1)