factory PRectangle.fromPoints(Point p1, Point p2) => PRectangle.fromCoordinates(p1.x, p1.y, p2.x, p2.y);