findGamutIntersectionSimple function

double findGamutIntersectionSimple(
  1. double a,
  2. double b,
  3. double L1,
  4. double C1,
  5. double L0,
)

Implementation

double findGamutIntersectionSimple(double a, double b, double L1, double C1, double L0) {
  // Find the cusp of the gamut triangle
  LC cusp = findCusp(a, b);

  return findGamutIntersection(a, b, L1, C1, L0, cusp);
}