Simple geometry classes and algorithms in Ruby