What's the best way to calculate a 3D (or n-D) centroid?

后端 未结 8 498
萌比男神i
萌比男神i 2021-02-04 00:35

As part of a project at work I have to calculate the centroid of a set of points in 3D space. Right now I\'m doing it in a way that seems simple but naive -- by taking the avera

8条回答
  •  暖寄归人
    2021-02-04 01:10

    Nope, that is the only formula for the centroid of a collection of points. See Wikipedia: http://en.wikipedia.org/wiki/Centroid

提交回复
热议问题