simple classes for doing geometry - ported from smalltalk