Moved the istream and ostream support from Vec* and Matrix* into a seperate io_utils file.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user