We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff752a2 commit cceeb2dCopy full SHA for cceeb2d
src/ImageSharp/ColorProfiles/Rgb.cs
@@ -252,15 +252,14 @@ private static Matrix4x4 GetRgbToCieXyzMatrix(RgbWorkingSpace workingSpace)
252
Vector3 vector = Vector3.Transform(workingSpace.WhitePoint.ToVector3(), inverseXyzMatrix);
253
254
// Use transposed Rows/Columns
255
- // TODO: Is there a built in method for this multiplication?
256
return new Matrix4x4
257
{
258
M11 = vector.X * mXr,
259
M21 = vector.Y * mXg,
260
M31 = vector.Z * mXb,
261
- M12 = vector.X * 1,
262
- M22 = vector.Y * 1,
263
- M32 = vector.Z * 1,
+ M12 = vector.X,
+ M22 = vector.Y,
+ M32 = vector.Z,
264
M13 = vector.X * mZr,
265
M23 = vector.Y * mZg,
266
M33 = vector.Z * mZb,
0 commit comments