maxChromaForLH static method
Implementation
static double maxChromaForLH(double L, double H) {
double hrad = H / 360 * math.pi * 2;
List<Line> bounds = getBounds(L);
double min = double.infinity;
for (Line bound in bounds) {
double length = Geometry.lengthOfRayUntilIntersect(hrad, bound);
if (length >= 0) {
min = math.min(min, length);
}
}
return min;
}