Reformat Point2D class