38 AHitInBoxAlgorithm hitInBoxAlgorithm;
39 AnotherHitInBoxAlgorithm anotherHitInBoxAlgorithm;
41 const Weight& firstResult = hitInBoxAlgorithm(
object, box);
42 const Weight& secondResult = anotherHitInBoxAlgorithm(
object, box);
44 if (std::isnan(firstResult) and std::isnan(secondResult)) {
46 }
else if (std::isnan(firstResult)) {
48 }
else if (std::isnan(secondResult)) {
51 return firstResult + secondResult;