Show
Ignore:
Timestamp:
05/09/07 11:26:33 (7 years ago)
Author:
robert
Message:

Added signOrZero template method, and to Matrix_implementation.cpp usage of this
method in the get(Quat&) code.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgunittests/osgunittests.cpp

    r5828 r6627  
    315315 
    316316    testGetQuatFromMatrix(); 
    317 } 
     317 
     318 
     319    osg::Matrix matrix(0.5, 0.0, 0.0, 0.0, 
     320                       0.0, 0.5, 0.0, 0.0, 
     321                       0.0, 0.0, 0.5, 0.0, 
     322                       1.0, 1.0, 1.0, 1.0); 
     323                        
     324    osg::Quat quat; 
     325    matrix.get(quat); 
     326     
     327    osg::notify(osg::NOTICE)<<"Matrix = "<<matrix<<" rotation="<<quat<<std::endl; 
     328 
     329} 
     330 
    318331 
    319332int main( int argc, char** argv )