/*! * @file color.h * @brief Definition of color-calculations * * code borrowed from: * http://www.easyrgb.com/math.php */ #ifndef _COLOR_H #define _COLOR_H #include "vector.h" //! a very abstract Class that helps transforming Colors into different Systems class Color { public: static Vector RGBtoHSV (const Vector& RGB); static void RGBtoHSV (const Vector& RGB, Vector& HSV); static Vector HSVtoRGB (const Vector& HSV); static void HSVtoRGB (const Vector& HSV, Vector& RGB); private: static float minrgb(float r, float g, float b); static float maxrgb(float r, float g, float b); }; #endif /* _COLOR_H */