Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Compute center of a polygon #59

Open
aarongerig opened this issue Jan 24, 2020 · 3 comments
Open

[FEATURE] Compute center of a polygon #59

aarongerig opened this issue Jan 24, 2020 · 3 comments
Labels

Comments

@aarongerig
Copy link

It would be nice to have a method in the Polygon class, which computes and returns the center of all coordinates.

Is this something you would be interested in?
See http://tutorialspots.com/php-how-to-determine-the-center-of-a-polygon-637.html

@aarongerig
Copy link
Author

ping @mjaschen :)

@mjaschen
Copy link
Owner

Hi,

that'd be a nice addition. The referenced algorithms are for planar polygons only. We have to find something that works on the surface of an ellipsoid. Lets see if we find the time for research and implementation :-)

@aarongerig
Copy link
Author

WDYT about this one, @mjaschen? https://bell0bytes.eu/centroid-convex/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants