Remove the corner helpers akgl_collide_rectangles no longer uses
akgl_rectangle_points, akgl_collide_point_rectangle, akgl_Point and akgl_RectanglePoints go. They were the intermediate form of an implementation that changed: akgl_collide_rectangles was eight corner-containment tests built on them, and it has been four span comparisons since the cross-case fix. Nothing outside tests/ called either function, and a point-in-rectangle test is four comparisons a caller can write without a struct conversion in front of them. akgl_collide_rectangles stays. It has two correct callers in the sidescroller asking a game-level overlap question -- a coin, a hazard, from an updatefunc -- where a bool is the whole answer and a proxy plus a narrowphase call would be computing a normal nothing reads. TODO.md records the split rather than leaving it to be rediscovered. Public API removal, so 194 exported akgl_ symbols against 196, and the manual's counts move with them. The perf suite loses its rectangle_points row; the all-pairs sweep stays as the control it is now labelled, and PERFORMANCE.md says what 0.8.0 measured against it -- 188.5 us for 32,640 pairs at 256 actors, where a whole step with collision attached is 54.1 us doing strictly more. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KzBDV2fqgnUAcqCKqKvc71
This commit is contained in:
@@ -214,7 +214,7 @@ in the tree negated it, which is the only reason that was latent rather than liv
|
||||
|
||||
## Errors carry context, and callers cannot ignore them
|
||||
|
||||
**183 of libakgl's 195 functions return `akerr_ErrorContext AKERR_NOIGNORE *`.**
|
||||
**181 of libakgl's 193 functions return `akerr_ErrorContext AKERR_NOIGNORE *`.**
|
||||
Results come back through pointer parameters; the return value is always the error. The
|
||||
`AKERR_NOIGNORE` attribute makes discarding it a compiler diagnostic.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user