Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/preferences/src/lib/util/color.h @ 7244

Last change on this file since 7244 was 7195, checked in by bensch, 18 years ago

orxonox/trunk: performance issues

File size: 629 bytes
Line 
1/*!
2 * @file color.h
3 * @brief Definition of color-calculations
4 *
5 * code borrowed from:
6 * http://www.easyrgb.com/math.php
7*/
8
9#ifndef _COLOR_H
10#define _COLOR_H
11
12#include "vector.h"
13
14//! a very abstract Class that helps transforming Colors into different Systems
15class Color
16{
17public:
18  static Vector RGBtoHSV (const Vector& RGB);
19  static void RGBtoHSV (const Vector& RGB, Vector& HSV);
20  static Vector HSVtoRGB (const Vector& HSV);
21  static void HSVtoRGB (const Vector& HSV, Vector& RGB);
22
23private:
24  static float minrgb(float r, float g, float b);
25  static float maxrgb(float r, float g, float b);
26};
27
28#endif /* _COLOR_H */
Note: See TracBrowser for help on using the repository browser.