fix: preserve behavior under new Clippy lints

Keep the fixed ray direction explicit and simplify a single-element loop.
This commit is contained in:
bherbruck committed 2026-10-09 20:18:05 -04:00
1 parent 5d69452db3
commit 88b4c5b883
2 files changed
+4 -4

No files matched your search

+2
View File
@@ -179,6 +179,8 @@ fn deepest(a: &solvecraft_geom::Mesh, b: &solvecraft_geom::Mesh, tol: f64) -> f6
/// Ray parity along a skew direction (no axis-aligned edge hits).
fn inside(p: Vec3, tris: &[[Vec3; 3]]) -> bool {
// Fixed ray coordinates, not an approximation used to compute Euler's constant.
#[allow(clippy::approx_constant)]
let dir = Vec3::new(0.577_215_664_9, 0.327_118_441_9, 0.751_891_438_7);
let mut n = 0;
for [a, b, c] in tris {