Skip to content

compute polygon area and centroid relative to the first vertex - #41

Open
Fil wants to merge 1 commit into
mainfrom
fil/shoelace
Open

Fil wants to merge 1 commit into
mainfrom
fil/shoelace

Conversation

@Fil

@Fil Fil commented Dec 1, 2026

Copy link
Copy Markdown
Member

Apply the shoelace formula to coordinates relative to the first vertex, keeping the previous vertex in local variables.

polygonCentroid and polygonArea end up ~ x1.4 faster, and with better precision

supersedes #39

Apply the shoelace formula to coordinates relative to the first vertex, keeping the previous vertex in local variables.

polygonCentroid and polygonArea end up ~ x1.4 faster, and with better precision

supersedes #39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant