Dispatch normalization routines correctly #87

Merged
glen merged 4 commits from Vectornaut/dyna3:dispatch-normalization into main 2025-06-04 21:01:14 +00:00

4 commits

Author SHA1 Message Date
Aaron Fenyes
f332f755e0 Improve the naming of the normalization methods
All checks were successful
/ test (pull_request) Successful in 2m29s
2025-06-02 13:47:05 -07:00
Aaron Fenyes
e19792d961 Explain the new check-cfg lint 2025-06-02 13:47:05 -07:00
Aaron Fenyes
0cfdd59e23 Test curvature drift during position nudging
The test fails, as expected, if you disable sphere normalization by
making `Sphere::normalize_mut_rep` do nothing. Since the tests aren't
built for WebAssembly, we have to replace `console::log` with
`console_log!` in all of the functions they use. We'll eventually want
to do this replacement everywhere.
2025-06-02 13:47:05 -07:00
Aaron Fenyes
f4e5c34fde Add a trait method to normalize representations
This corrects the dispatching of the normalization routine for spheres,
and it adds a (perhaps redundant) normalization routine for points.
2025-06-02 13:47:05 -07:00