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; } }
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]; }