已知中点的坐标 int centerX = 0; int centerY = 0; 间距 int spacing = 10; 行数和列数 int rows = 3; int cols = 3; 生成其他点的坐标 for int i = 0; i rows; i++
Point[0,0]: (-10,-10) Point[0,1]: (0,-10) Point[0,2]: (10,-10) Point[1,0]: (-10,0) Point[1,1]: (0,0) Point[1,2]: (10,0) Point[2,0]: (-10,10) Point[2,1]: (0,10) Point[2,2]: (10,10)
原文地址: http://www.cveoy.top/t/topic/h5no 著作权归作者所有。请勿转载和采集!