Skip to content

Comment on Finding the World's Economic Center of Gravityparent

Comments

That's exactly how it's done, for what it worth (though you use 3D cartesian coordinates instead of spherical coordinates).

Treat each point on the sphere as a 3D unit vector, weight as appropriate, and the center of mass is the sum of all of the vectors.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.