Definition at line 508 of file rt_util.c.
522 for (i = 1; i < 3; i++) {
539 rc = (maxc - rgb[0]) / diff;
540 gc = (maxc - rgb[1]) / diff;
541 bc = (maxc - rgb[2]) / diff;
545 else if (
DBL_EQ(rgb[1], maxc))
550 h = modf((h / 6.0), &junk);
References DBL_EQ, ES_NONE, and s.
Referenced by test_rgb_to_hsv().