//! element access functions ( read-only and read-write )
float operator[](unsigned int i) const;
float& operator[](unsigned int i);
-
+/*
+ inline std::string& operator std::string() {
+ std::string s = "(" + v[0] << "," << v[1] << "," << v[2] << ")");
+ return std::string(
+ }
+*/
private:
float m_values[3];
};
inline std::ostream& operator<<(std::ostream& o, const Vec3f& v) {
- o << "(" << v[0] << "," << v[1] << "," << v[2] << ")";
- return o;
+ o << "(" << v[0] << "," << v[1] << "," << v[2] << ")";
+ return o;
}
#endif