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