Definition at line 559 of file rt_util.c.
573 for (i = 1; i < 3; i++) {
590 rc = (maxc - rgb[0]) / diff;
591 gc = (maxc - rgb[1]) / diff;
592 bc = (maxc - rgb[2]) / diff;
596 else if (
DBL_EQ(rgb[1], maxc))
601 h = modf((h / 6.0), &junk);
References DBL_EQ, ES_NONE, and s.
Referenced by test_rgb_to_hsv().