21 template <
typename Real>
35 template <
typename Real>
44 Real center =
Dot(halfspace.normal, box.center) - halfspace.constant;
48 std::abs(box.extent[0] *
Dot(halfspace.normal, box.axis[0])) +
49 std::abs(box.extent[1] *
Dot(halfspace.normal, box.axis[1])) +
50 std::abs(box.extent[2] *
Dot(halfspace.normal, box.axis[2]));
54 result.intersect = (center + radius >= (Real)0);
gte::BSNumber< UIntegerType > abs(gte::BSNumber< UIntegerType > const &number)
DualQuaternion< Real > Dot(DualQuaternion< Real > const &d0, DualQuaternion< Real > const &d1)
Result operator()(Type0 const &primitive0, Type1 const &primitive1)