public static String hexagon(Coordinate center, double radius) {
	Coordinate corner = center.sub(Coordinate.Y.neg().scale(radius));
	String res = "G36*\n" + String.format("X%dY%dD02*\n", (int)(corner.x), (int)(corner.y));
	//	for(int i=1; i<6; i++) {
	for(int i: new int[] {1,2,3,4,5}) {
	    corner = corner.sub(center).rotate(Math.PI/3).add(center);
	    res += String.format("X%07dY%07dD01*\n", (int)(corner.x), (int)(corner.y));
	}
	res += "G37*";
	return res;
    }