#include <cstdio>
#include <sstream>
#include <iostream>
+#include <iomanip>
#endif
}
}
+const String
+Color::get_string(void)const
+{
+ std::ostringstream o;
+ o << std::fixed << std::setprecision(3) << "#" << get_hex() << " : " << std::setw(6) << a_;
+ return String(o.str().c_str());
+}
+
#if 0
Color&
Color::rotate_uv(const Angle& theta)const
/* === H E A D E R S ======================================================= */
-#include <iostream>
-#include <iomanip>
-#include <sstream>
-#include <string>
-
//#include <cmath>
#include <math.h>
#include <cassert>
public:
- inline const String get_string(void)const
- {
- std::ostringstream o;
- o << std::fixed << std::setprecision(3) << "#" << get_hex() << " : " << std::setw(6) << a_;
- return String(o.str().c_str());
- }
+ const String get_string(void)const;
Color &
operator+=(const Color &rhs)