diff --git a/vcg/math/matrix44.h b/vcg/math/matrix44.h index 50253fdb..9bdd204b 100644 --- a/vcg/math/matrix44.h +++ b/vcg/math/matrix44.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.22 2004/12/15 18:45:50 tommyfranken +*** empty log message *** + Revision 1.21 2004/10/22 14:41:30 ponchio return in operator+ added. @@ -64,6 +67,7 @@ Revision 1.12 2004/03/25 14:57:49 ponchio #include #include #include +#include namespace vcg { @@ -381,6 +385,12 @@ template void Matrix44::operator*=( const Matrix44 & m ) { } */ } +template < class PointType , class T > void operator*=( std::vector &vert, const Matrix44 & m ) { + std::vector::iterator ii; + for(ii=vert.begin();ii!=vert.end();++ii) + (*ii).P()=m * (*ii).P(); +} + template void Matrix44::operator*=( const T k ) { for(int i = 0; i < 4; i++) operator[](i) *= k;