This post moved to https://squarism.com/posts/simple-ruby-processing-collision-detection.