public void Pow3ResultMatchesMath() { const float X = -33; float expected = (float)Math.Pow(X, 3); Assert.Equal(expected, ImageMaths.Pow3(X)); }
public static float Expand(float channel) => channel <= 0.08F ? (100F * channel) / CieConstants.Kappa : ImageMaths.Pow3((channel + 0.16F) / 1.16F);