Skip to content

feat: Benchmark area fix#345

Merged
sameeul merged 3 commits into
PolusAI:mainfrom
vjaganat90:benchmark_area_fix
Jun 5, 2026
Merged

feat: Benchmark area fix#345
sameeul merged 3 commits into
PolusAI:mainfrom
vjaganat90:benchmark_area_fix

Conversation

@vjaganat90

@vjaganat90 vjaganat90 commented May 14, 2026

Copy link
Copy Markdown
Member

This fixes the polygon_area calculation bug due to incorrect direction of traversal in the final edge. And contains a benchmark for convex area calculation to track any performance regression of this feature.

It is important to note that the exact calculation of convex hull area is made consistent with the textbook definition. All derived quantities downstream of that including Solidity aren't regularized or made consistent with conventional definition or even audited for internal consistency. So the downstream numbers may yet be incorrect or the tests maybe buggy. The derived constant changes are just calculated values plugging in values from the fixed convex hull calculation.

The scope of this PR is ONLY to fix the convex area calculation and the corresponding benchmark.

@vjaganat90 vjaganat90 force-pushed the benchmark_area_fix branch from 3462fdc to 8223db9 Compare June 1, 2026 14:16
@vjaganat90 vjaganat90 marked this pull request as ready for review June 1, 2026 17:45
@vjaganat90 vjaganat90 force-pushed the benchmark_area_fix branch from 8223db9 to cfe91d3 Compare June 3, 2026 13:38
@vjaganat90 vjaganat90 force-pushed the benchmark_area_fix branch from cfe91d3 to 6a036e5 Compare June 3, 2026 13:57
@sameeul sameeul merged commit b532f21 into PolusAI:main Jun 5, 2026
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants