From 8195ac12865f8b67746d747161a973a2bff691a7 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 4 Oct 2026 07:20:55 +0200 Subject: [PATCH] iv_snoise_ball(float2): the doc states it is exact for its point and names the caller's float32 allowance The 2D ball carries no evaluation allowance, like iv_snoise_ball(float3); the caller that rounds the flow's point adds 2^-14 + L2 2^-20 (|centre|_1 + radius), the convention af_snoise carries for the 3D point. Co-Authored-By: Claude Sonnet 5.5 --- packages/cultmath/src/CultMath/math.Interval.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/cultmath/src/CultMath/math.Interval.cs b/packages/cultmath/src/CultMath/math.Interval.cs index 3ebc9355..5d0a6da4 100644 --- a/packages/cultmath/src/CultMath/math.Interval.cs +++ b/packages/cultmath/src/CultMath/math.Interval.cs @@ -153,8 +153,11 @@ public static partial class math /// /// Encloses snoise(x) for every 2D x within distance radius of centre: [n - L2 r, n + L2 r] intersected /// with [-1, 1], n = snoise(centre), L2 = SNOISE2_LIPSCHITZ. radius must be at least 0. One snoise - /// evaluation, value only. A consumer's 2D flow built from snoise(float2) varies over a ball by at - /// most the width this gives (NoiseBoundTests.CentredWarpStaysEnclosed). + /// evaluation, value only. Like iv_snoise_ball(float3) it is exact for the point it is handed and + /// carries no allowance for the float32 evaluation: a consumer whose 2D flow is evaluated at points + /// it rounds itself (a shifted, scaled or projected point) adds 2^-14 + L2 2^-20 (|centre|_1 + radius) + /// to the width, the convention af_snoise carries for the 3D point + /// (NoiseBoundTests.FlowVariationCarriesItsAllowance, CentredWarpStaysEnclosed). /// public static float2 iv_snoise_ball(float2 centre, float radius) {