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

后端 未结 8 473
萌比男神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

    0 讨论(0)
  • 2021-02-04 01:11

    You got it. What you are calculating is the centroid, or the mean vector.

    0 讨论(0)
提交回复
热议问题