Skip to content

Commit fdcecfd

Browse files
Optimize transform
1 parent fe6366e commit fdcecfd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/ImageSharp/Common/Helpers/ColorNumerics.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,7 @@ internal static Vector4 Transform(Vector4 vector, in ColorMatrix.Impl matrix)
145145
result += matrix.Y * vector.Y;
146146
result += matrix.Z * vector.Z;
147147
result += matrix.W * vector.W;
148-
149-
result.X += matrix.V.X;
150-
result.Y += matrix.V.Y;
151-
result.Z += matrix.V.Z;
152-
result.W += matrix.V.W;
148+
result += matrix.V;
153149

154150
return result;
155151
}

0 commit comments

Comments
 (0)