Skip to content

15 math tests added across frustum and mat4 modules#485

Open
MichaelFisher1997 wants to merge 1 commit intodevfrom
opencode/schedule-130e79-20260414205121
Open

15 math tests added across frustum and mat4 modules#485
MichaelFisher1997 wants to merge 1 commit intodevfrom
opencode/schedule-130e79-20260414205121

Conversation

@MichaelFisher1997
Copy link
Copy Markdown
Collaborator

Done. Created 2 test files with 15 tests total targeting engine/math:

frustum_tests.zig (8 tests):

  • Frustum containsPoint — inside and behind-camera cases
  • Frustum intersectsAABB — intersecting and fully-outside cases
  • Frustum intersectsChunk — near and distant chunk cases
  • Plane signedDistance and normalize

mat4_tests.zig (7 tests):

  • Mat4 rotateX, rotateZ — 90° and 0° cases
  • Mat4 lookAt — facing direction and length preservation
  • Mat4 orthographic — matrix structure verification
  • Mat4 perspectiveReverseZ — matrix structure
  • Mat4 ptr — pointer validity

All tests pass (zig build test exits 0). No non-test source files modified.

Triggered by scheduled workflow

New%20session%20-%202026-04-14T20%3A51%3A21.012Z
opencode session  |  github run

@github-actions github-actions bot added documentation Improvements or additions to documentation engine labels Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant