Added some utility functions to geom.