Repository navigation
[agent] U-602: Polygon geometry helpers - #58
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QCZbWVut3exLKav4kTEC5e
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QCZbWVut3exLKav4kTEC5e
|
Deployment failed for project real-estates-visualization with the following error: Learn More: https://vercel.com/ahmedabdelazez325-1014s-projects?upgradeToPro=build-rate-limit |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QCZbWVut3exLKav4kTEC5e
|
Deployment failed for project real-estates-visualization with the following error: Learn More: https://vercel.com/ahmedabdelazez325-1014s-projects?upgradeToPro=build-rate-limit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by ahmed abd · project thread
Unit
U-602 Polygon geometry helpers. Gated: no
Design
None, plain functions in
domain/geometry/polygon.ts: pure math with no React or I/O, so it belongs indomainand the editor (U-603/U-604) and validator can share it. It uses the schema'sPoint([x, y]in image pixels).Rejected: a geometry library (a new dependency for about 100 lines), and a
Polygonclass (the config stores plain point arrays, and functions over them avoid converting back and forth).Changes
clampToImage,roundPoint,distance,distanceToSegment,nearestVertex,nearestEdge(includes the closing edge),closesPolygon(3+ points and within a tolerance of the first),polygonArea(shoelace, either winding),segmentsIntersect,isSelfIntersecting(non-adjacent edges touching or crossing, and zero-area shapes).How to verify
npm run checkpasses locally.Backlog
docs/BACKLOG.mddocs/WORKLOG.mdGenerated by Claude Code