From db723dbf5367eca004ff1a9ebfbdf87074406126 Mon Sep 17 00:00:00 2001 From: Stefan Nikolei Date: Sun, 26 Feb 2023 15:07:27 +0100 Subject: [PATCH] Optimize multiply --- src/ImageSharp/Primitives/ColorMatrix.Impl.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ImageSharp/Primitives/ColorMatrix.Impl.cs b/src/ImageSharp/Primitives/ColorMatrix.Impl.cs index bdd520f6e..559fcdde0 100644 --- a/src/ImageSharp/Primitives/ColorMatrix.Impl.cs +++ b/src/ImageSharp/Primitives/ColorMatrix.Impl.cs @@ -134,10 +134,7 @@ public partial struct ColorMatrix result.V += right.Z * left.V.Z; result.V += right.W * left.V.W; - result.V.X += right.V.X; - result.V.Y += right.V.Y; - result.V.Z += right.V.Z; - result.V.W += right.V.W; + result.V += right.V; return result; }