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