style: apply whitespace formatting to motion tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
6 files changed
+31
-31
No files matched your search
@@ -74,13 +74,13 @@ public sealed class MotionBlurTests
|
||||
using var source = Texture();
|
||||
using var motion = new MotionField(Size, Size, 2);
|
||||
for (var j = 0; j < motion.Rows; j++)
|
||||
for (var i = 0; i < motion.Columns; i++)
|
||||
{
|
||||
// A smooth swirl: magnitude up to ~6 px.
|
||||
var k = j * motion.Columns + i;
|
||||
motion.U[k] = (float)(6 * double.Sin(j * 0.1));
|
||||
motion.V[k] = (float)(4 * double.Cos(i * 0.08));
|
||||
}
|
||||
for (var i = 0; i < motion.Columns; i++)
|
||||
{
|
||||
// A smooth swirl: magnitude up to ~6 px.
|
||||
var k = j * motion.Columns + i;
|
||||
motion.U[k] = (float)(6 * double.Sin(j * 0.1));
|
||||
motion.V[k] = (float)(4 * double.Cos(i * 0.08));
|
||||
}
|
||||
using var output = new ImageBuffer(Size, Size);
|
||||
new MotionBlurRenderer().Render(source, motion, 1.0, output);
|
||||
for (var c = 0; c < 3; c++)
|
||||
@@ -98,11 +98,11 @@ public sealed class MotionBlurTests
|
||||
double sum = 0;
|
||||
var n = 0;
|
||||
for (var y = margin; y < Size - margin; y++)
|
||||
for (var x = margin; x < Size - margin; x++)
|
||||
{
|
||||
sum += plane[y * Size + x];
|
||||
n++;
|
||||
}
|
||||
for (var x = margin; x < Size - margin; x++)
|
||||
{
|
||||
sum += plane[y * Size + x];
|
||||
n++;
|
||||
}
|
||||
return sum / n;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user