rectangle = [(0,0,0),(0,1,0),(1,1,0),(1,0,0)] x, y, z = zip(*rectangle) centroid = (sum(x)/len(x), sum(y)/len(y), sum(z)/len(z))
我只会这样求,但是显然对于N维来说,这个样子太累了...
喵喵时光机
小唯快跑啊
相关分类