feat(cam): circle-segment intersection + winding containment queries #51

Merged
patman merged 1 commit from patman/cam-query into main 2026-07-09 23:27:42 +00:00 AGit
Owner

PR2 of the adaptive-clearing roadmap: circle-line/circle-arc intersections as angles on the query circle (tolerance-widened per Contour::tolerance, so exact-endpoint hits survive FP; junction hits may be double-reported by design) and winding-number containment with a rigorously branch-pinned adaptive arc walk (pieces of turning <= pi/2 subtend < 3pi/2, so principal <= pi/2 pins the true branch). region_contains gives material semantics (CCW outer, CW islands). Next PR computes the exact engagement angle from these. Stacked on patman/cam-geom (#50).

PR2 of the adaptive-clearing roadmap: circle-line/circle-arc intersections as angles on the query circle (tolerance-widened per Contour::tolerance, so exact-endpoint hits survive FP; junction hits may be double-reported by design) and winding-number containment with a rigorously branch-pinned adaptive arc walk (pieces of turning <= pi/2 subtend < 3pi/2, so principal <= pi/2 pins the true branch). region_contains gives material semantics (CCW outer, CW islands). Next PR computes the exact engagement angle from these. Stacked on patman/cam-geom (#50).
Adds cam-geom point/circle queries: circle-line and circle-arc
intersections as angles on the query circle (tolerance-widened per the
contour closure contract), and winding-number containment with a
branch-pinned adaptive arc walk. These are the primitives exact
engagement is computed from.

Co-authored-by: patman-assist <patrick-ai@kgroo.co>
patman changed target branch from patman/cam-geom to main 2026-07-09 23:27:41 +00:00
patman merged commit eef275e883 into main 2026-07-09 23:27:42 +00:00
Sign in to join this conversation.
No description provided.