Moved operations on points into a util class.