Processing Forum
Since we have programmed the balls in an object-oriented fashion, it is not terribly logical to suddenly have an intersect( ) function that lives outside of the ball class. A ball object should know how to test if it is intersecting another ball object.