16 template <
int N,
typename Real>
32 template <
int N,
typename Real>
36 template <
typename Real>
39 template <
typename Real>
43 template <
int N,
typename Real>
45 DCPQuery<Real, Vector<N, Real>, Line<N, Real>>::operator()(
51 result.lineParameter =
Dot(line.direction, diff);
52 result.lineClosest = line.origin + result.lineParameter*line.direction;
54 diff = point - result.lineClosest;
55 result.sqrDistance =
Dot(diff, diff);
56 result.distance = sqrt(result.sqrDistance);
GLsizei GLsizei GLfloat distance
Result operator()(Type0 const &primitive0, Type1 const &primitive1)
DualQuaternion< Real > Dot(DualQuaternion< Real > const &d0, DualQuaternion< Real > const &d1)
Vector< N, Real > lineClosest