Definition at line 505 of file rt_util.c.
519 for (i = 1; i < 3; i++) {
536 rc = (maxc - rgb[0]) / diff;
537 gc = (maxc - rgb[1]) / diff;
538 bc = (maxc - rgb[2]) / diff;
542 else if (
DBL_EQ(rgb[1], maxc))
547 h = modf((h / 6.0), &junk);
References DBL_EQ, ES_NONE, and s.
Referenced by test_rgb_to_hsv().