Changeset 7195 in orxonox.OLD for trunk/src/lib/util/color.h
- Timestamp:
- Mar 7, 2006, 11:12:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/color.h
r5011 r7195 10 10 #define _COLOR_H 11 11 12 //#include "vector.h" 13 class Vector; 12 #include "vector.h" 14 13 15 14 //! a very abstract Class that helps transforming Colors into different Systems 16 15 class Color 17 16 { 18 17 public: 19 18 static Vector RGBtoHSV (const Vector& RGB); 19 static void RGBtoHSV (const Vector& RGB, Vector& HSV); 20 20 static Vector HSVtoRGB (const Vector& HSV); 21 static void HSVtoRGB (const Vector& HSV, Vector& RGB); 21 22 23 private: 22 24 static float minrgb(float r, float g, float b); 23 25 static float maxrgb(float r, float g, float b);
Note: See TracChangeset
for help on using the changeset viewer.