aboutsummaryrefslogtreecommitdiffstats
path: root/meowpp/colors/RGB.h
diff options
context:
space:
mode:
Diffstat (limited to 'meowpp/colors/RGB.h')
-rw-r--r--meowpp/colors/RGB.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/meowpp/colors/RGB.h b/meowpp/colors/RGB.h
index c7c03c1..803cdd9 100644
--- a/meowpp/colors/RGB.h
+++ b/meowpp/colors/RGB.h
@@ -2,6 +2,8 @@
#define colors_RGB_H_
#include <cstdlib>
+#include "../math.h"
+#include "../geo/Vector3D.h"
namespace meow{
template<class T>
@@ -32,6 +34,10 @@ namespace meow{
T b(T const& val);
T rgb(size_t i, T const& val);
T bgr(size_t i, T const& val);
+ T rgb(T const& __r, T const& __g, T const& __b);
+ T bgr(T const& __r, T const& __g, T const& __b);
+ Matrix <T> matrix() const;
+ Vector3D<T> vector() const;
};
class RGBf: public RGB<double>{