fourierknots/fourier_syn.cpp
void FourierKnot::apply(Matrix3 &m) {
  // This rotation matrix has a trigo pos orientation!
  c0 = m*c0;
  for (uint i=0;i<csin.size();++i) {
    csin[i] = m*csin[i];
    ccos[i] = m*ccos[i];
  }
}
/*
  Apply the matrix m to all the coefficients.
  Corresponds to a change of basis (i.e. rotation).
*/
Apply the matrix m to all the coefficients.
Corresponds to a change of basis .
Apply the matrix m to all the coefficients . Corresponds to a change of basis .
void FourierKnot::apply(Matrix3 &m) {
  c0 = m*c0;
  for (uint i=0;i<csin.size();++i) {
    csin[i] = m*csin[i];
    ccos[i] = m*ccos[i];
  }
}
void FourierKnot :: apply ( Matrix3 & m ) { c0 = m * c0 ; for ( uint i = 0 ; i < csin . size ( ) ; ++ i ) { csin [ i ] = m * csin [ i ] ; ccos [ i ] = m * ccos [ i ] ; } }
Apply the matrix m to all the coefficients.
Apply the matrix m to all the coefficients .
// This rotation matrix has a trigo pos orientation!