Geometric primitives for Ruby