-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
https://github.com/math-utils/area-polygon/blob/master/index.js#L7
Here we try check to see if the polygon ends where it begins, but because JavaScript compares object/arrays by reference, this comparison will return false even if the points of the head and tail of the polygon do match.
This does not pose a correctness issue, because adding the additional end point redundantly does not change the area of the polygon, but it is a bit wasteful/confusing.
Metadata
Metadata
Assignees
Labels
No labels