22 template <
typename Real>
36 template <
typename Real>
45 ellipsoid.GetMInverse(MInverse);
46 Real discr =
Dot(halfspace.normal, MInverse * halfspace.normal);
47 Real extent = sqrt(std::max(discr, (Real)0));
48 Real center =
Dot(halfspace.normal, ellipsoid.center) - halfspace.constant;
49 Real tmax = center + extent;
53 result.intersect = (tmax >= (Real)0);
DualQuaternion< Real > Dot(DualQuaternion< Real > const &d0, DualQuaternion< Real > const &d1)
Result operator()(Type0 const &primitive0, Type1 const &primitive1)