From 3ae7f0323157d1db593a06374c57c16a770007e6 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 27 Nov 2026 05:27:00 +0100 Subject: [PATCH] Drop-normal bound at the geometric mean of clean and mutant angles (cos 0.983) Co-Authored-By: Claude Sonnet 5.5 --- tests/BadDay.Tests/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/BadDay.Tests/Program.cs b/tests/BadDay.Tests/Program.cs index e6f4b4a..d249296 100644 --- a/tests/BadDay.Tests/Program.cs +++ b/tests/BadDay.Tests/Program.cs @@ -1519,7 +1519,8 @@ public static class Program float ex = w.ParticleX[drop] - pick.Point.X, ey = w.ParticleY[drop] - pick.Point.Y, ez = w.ParticleZ[drop] - pick.Point.Z; float cos = (ex * pick.Normal.X + ey * pick.Normal.Y + ez * pick.Normal.Z) / MathF.Sqrt(ex * ex + ey * ey + ez * ez); Console.WriteLine($" first drop leaves at cos {cos:F3} to the surface normal"); - Check(cos > 0.95f, $"the first drop left at cos {cos:F3} to the normal: the wound normal was not taken into the part's frame"); + // Bound by deterministic-bound-margin, as angle: clean acos(0.998) = 3.6 deg, normal unrotated acos(0.857) = 31.0 deg, geometric mean 10.6 deg, cos 0.983. + Check(cos > 0.983f, $"the first drop left at cos {cos:F3} to the normal: the wound normal was not taken into the part's frame"); }), ("office reach by point: the throat front cuts the larynx and not the neck muscle; the chin cuts the muscle and not the larynx", () =>