Closed ChameleonRed closed 10 years ago
What bug is this fixing? I'm not seeing any difference in the Lab test results.
I spent some more time poking at this. Looks like it's a straight code re-arrange with no mathematical difference, unless I am missing something. The constants we have in colormath are pre-computed, but work out to be the same as what you've got here.
Readability takes a step back in this PR, so I'm going to close this one. If there is a mathematical snag that you are hitting that this PR addresses, please re-open and elaborate.
I think that code is more readable:
It is also much faster and more readable.
I am not done code compression but cut what is not readable. Fix this code since it is not good now.
Fixed bug with invalid constant.
Less code to read.