Added signOrZero template method, and to Matrix_implementation.cpp usage of this

method in the get(Quat&) code.
This commit is contained in:
Robert Osfield
2007-05-09 09:26:33 +00:00
parent 681bf12333
commit 6c74589014
3 changed files with 19 additions and 3 deletions

View File

@@ -314,8 +314,21 @@ void testQuat()
testQuatRotate(osg::Vec3d(0.0,0.0,-1.0),osg::Vec3d(0.0,0.0,1.0));
testGetQuatFromMatrix();
osg::Matrix matrix(0.5, 0.0, 0.0, 0.0,
0.0, 0.5, 0.0, 0.0,
0.0, 0.0, 0.5, 0.0,
1.0, 1.0, 1.0, 1.0);
osg::Quat quat;
matrix.get(quat);
osg::notify(osg::NOTICE)<<"Matrix = "<<matrix<<" rotation="<<quat<<std::endl;
}
int main( int argc, char** argv )
{
osg::ArgumentParser arguments(&argc,argv);