Skip to content
Snippets Groups Projects
Commit 53f80945 authored by Francois Bleibel's avatar Francois Bleibel
Browse files

Added helper entity "MatrixRotToMatrix" to convert types where the dynamic...

Added helper entity "MatrixRotToMatrix" to convert types where the dynamic type verification system fails.
parent 02a32c4b
No related branches found
No related tags found
No related merge requests found
......@@ -469,4 +469,17 @@ res=r;
typedef UnaryOp<ml::Vector,ml::Vector,DirtyMemory> v2mDirtyMemory;
SOT_FACTORY_TEMPLATE_ENTITY_PLUGIN_E_E(v2mDirtyMemory,vector,v2mDM_,"DirtyMemory", ,"");
struct MatrixRotToMatrix
{
public:
MatrixRotToMatrix( void ) {}
void operator()( const MatrixRotation& a,ml::Matrix& result )
{
result = a;
}
};
typedef UnaryOp<MatrixRotation,ml::Matrix,MatrixRotToMatrix> mrot2matrix;
SOT_FACTORY_TEMPLATE_ENTITY_PLUGIN_E_E(mrot2matrix,matrixRotation,matrix,"MatrixRotToMatrix", ,"");
} // namespace sot
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment