1 #include "mof/stream/utilities.hpp"
2 #include "mof/stream/Joint.hpp"
3 #include <boost/bind.hpp>
7 mof::Vector2D matrix2translation( const mof::Matrix2D& matrix )
9 return mof::Matrix2D::getTranslation( matrix );
12 mof::Vector2D matrix2scaling( const mof::Matrix2D& matrix )
14 return matrix.getDiagonal( );
17 mof::Vector2D matrix2rotation( const mof::Matrix2D& matrix )
20 return matrix.getDiagonal( );
29 Manipulator< Vector2D >::Handler
30 makeTranslation2DHandler( const Manipulator< Matrix2D >::Handler& handler )
32 return makeJointHandler( handler , &matrix2translation );
33 //return makeJointHandler( handler , boost::bind( &matrix2translation ) );
36 Manipulator< Vector2D >::Handler
37 makeScaling2DHandler( const Manipulator< Matrix2D >::Handler& handler )
39 return makeJointHandler( handler , &matrix2scaling );
40 //return makeJointHandler( handler , boost::bind( &matrix2scaling ) );
44 Manipulator< Vector2D >::Handler
45 makeRotation2DHandler( const Manipulator< Matrix2D >::Handler& handler )
47 return makeJointHandler( handler , &matrix2rotation );
48 //return makeJointHandler( handler , boost::bind( &matrix2rotation ) );