Moved the istream and ostream support from Vec* and Matrix* into a seperate io_utils file.

This commit is contained in:
Robert Osfield
2005-04-08 09:01:23 +00:00
parent f417974f5b
commit a2974de978
16 changed files with 172 additions and 147 deletions

View File

@@ -15,17 +15,10 @@
#define OSG_MATRIXD 1
#include <osg/Object>
#include <osg/Vec3f>
#include <osg/Vec3d>
#include <osg/Vec4f>
#include <osg/Vec4d>
#include <osg/Quat>
#include <string.h>
#include <ostream>
#include <algorithm>
namespace osg {
class Matrixf;
@@ -646,18 +639,6 @@ inline Vec4d Matrixd::operator* (const Vec4d& v) const
return postMult(v);
}
inline std::ostream& operator<< (std::ostream& os, const Matrixd& m )
{
os << "{"<<std::endl;
for(int row=0; row<4; ++row) {
os << "\t";
for(int col=0; col<4; ++col)
os << m(row,col) << " ";
os << std::endl;
}
os << "}" << std::endl;
return os;
}
} //namespace osg