Definition at line 551 of file rt_util.c.
565 for (i = 1; i < 3; i++) {
582 rc = (maxc - rgb[0]) / diff;
583 gc = (maxc - rgb[1]) / diff;
584 bc = (maxc - rgb[2]) / diff;
588 else if (
DBL_EQ(rgb[1], maxc))
593 h = modf((h / 6.0), &junk);
References DBL_EQ, ES_NONE, and s.
Referenced by test_rgb_to_hsv().