. . "Basically the idea is this: suppose you have two types of objects, Circle and Rect, and you want to check for a collision between two objects of any of those types." . .