move bunch of Point-related functions to Geometry.java