Exemplo n.º 1
0
 void apply( Out::VecCoord& out, const In::VecCoord& in )
 {
     out.resize(in.size());
     dx.resize(in.size());
     for(unsigned int i=0; i<out.size(); i++)
     {
         double c = cos(in[i]);
         double s = sin(in[i]);
         out[i] = p0+rx*c+ry*s;
         dx[i] = rx*(-s)+ry*c;
     }
 }
Exemplo n.º 2
0
 void apply( Out::VecCoord& out, const In::VecCoord& in )
 {
     out.resize(in.size());
     for(unsigned int i=0; i<out.size(); i++)
         out[i] = p0+dx*in[i];
 }