You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rust: Port libobs/graphics/plane.c to obs-graphics #335
Phase 5 graphics math, the next file after matrix4.c and before bounds.c and math-extra.c. Tracking issue #45 (the checklist there is stale and still shows quat, matrix3, and matrix4 as open).
Dependencies and existing tests
Depends on vec3, matrix3, and matrix4, all merged. No cmocka characterization test exists; it lands as the first commit. Header-inline helpers in plane.h (plane_copy, plane_set, plane_setf, plane_close, plane_coplanar) stay C.
Notes
plane.c calls the header-inline SSE vec3_cross and vec3_norm. Parity should be bit-exact, including the w lane. plane_intersection_line leaves *t unchanged when it returns false. plane_intersection_ray writes *t = 0 on a parallel miss (fabs(c) < 1e-4). plane_transform runs the normal through vec3_transform, so a direction is transformed as a point. No intentional differences expected.
Characterization: cmocka test_plane for the seven exports. Pins the point-transform of a normal, a parallel ray miss that writes *t = 0, and a line miss that leaves *t unchanged.
RED: Tier 1 port of that test against an empty plane (zero dir, dist 0, false, t 0).
GREEN: safe core, C shims, layout test, proptest parity, and ENABLE_RUST_LIBOBS drops graphics/plane.c.
First PR today. I cannot add the claimed label; please add it.
Activity
nathan-v commentedon Oct 12, 2026
Claiming: libobs/graphics/plane.c
test_planefor the seven exports. Pins the point-transform of a normal, a parallel ray miss that writes*t = 0, and a line miss that leaves*tunchanged.ENABLE_RUST_LIBOBSdropsgraphics/plane.c.First PR today. I cannot add the
claimedlabel; please add it.rust: Port graphics/plane.c to obs-graphics (GREEN)
test/cmocka: Add plane characterization test
rust: Add plane tests against empty stubs (RED)