fourierknots/fourier_syn.cpp
FourierKnot FourierKnot::operator*(const float d) const {
  FourierKnot fk;
  for (uint i=0;i<csin.size();++i) {
    fk.csin.push_back(csin[i]*d);
    fk.ccos.push_back(ccos[i]*d);
  }
  fk.c0 = c0*d;
  return fk;
}
/*!
  Scale FourierKnot coefficients by d.
*/
Scale FourierKnot coefficients by d.
Scale FourierKnot coefficients by d .
FourierKnot FourierKnot::operator*(const float d) const {
  FourierKnot fk;
  for (uint i=0;i<csin.size();++i) {
    fk.csin.push_back(csin[i]*d);
    fk.ccos.push_back(ccos[i]*d);
  }
  fk.c0 = c0*d;
  return fk;
}
FourierKnot FourierKnot :: operator * ( const float d ) const { FourierKnot fk ; for ( uint i = 0 ; i < csin . size ( ) ; ++ i ) { fk . csin . push_back ( csin [ i ] * d ) ; fk . ccos . push_back ( ccos [ i ] * d ) ; } fk . c0 = c0 * d ; return fk ; }
Scale FourierKnot coefficients by d.
Scale FourierKnot coefficients by d .