ConvertRgbToHsv(Color c) returns an HSV with the H component == NaN if all R,G, and B components are equal (eg. gray color). Here's how the implementation should look like, I guess:
double h = max...
Id #31490 | Release:
None
| Updated: Sep 23 2011 at 4:10 AM by skalkin | Created: Sep 23 2011 at 4:10 AM by skalkin