public PixelDifference(Point position, Rgba64 expected, Rgba64 actual) { Position = position; RedDifference = actual.R - expected.R; GreenDifference = actual.G - expected.G; BlueDifference = actual.B - expected.B; AlphaDifference = actual.A - expected.A; var actualLengthSquared = actual.ToVector4().LengthSquared(); var expectedLengthSquared = expected.ToVector4().LengthSquared(); Delta = actualLengthSquared < expectedLengthSquared ? 0.0f : 1.0f; }