if (a->intersect(b)) return; if (b->intersect(a)) return; general_intersect(a, b);
(making the base version return false, and adding return true to any overrides)
This way you would only need to add the Ellipse/HyperFrob specialization to the HyperFrob class.
if (a->intersect(b)) return; if (b->intersect(a)) return; general_intersect(a, b);
(making the base version return false, and adding return true to any overrides)
This way you would only need to add the Ellipse/HyperFrob specialization to the HyperFrob class.