仅按质量加权平均有什么问题吗?
for each point n{ totalmass += n.mass totalx += n.x*n.mass totaly += n.y*n.mass}center = (totalx/totalmass,totaly/totalmass)适当添加其他尺寸。

仅按质量加权平均有什么问题吗?
for each point n{ totalmass += n.mass totalx += n.x*n.mass totaly += n.y*n.mass}center = (totalx/totalmass,totaly/totalmass)适当添加其他尺寸。