fourierknots/fourier_syn.cpp
void FourierKnot::rotate(const Vector3 v,float alpha) {
  // This rotation matrix has a trigo pos orientation!
  Matrix3 D; D.rotAround(v,alpha);
  c0 = D*c0;
  for (uint i=0;i<csin.size();++i) {
    csin[i] = D*csin[i];
    ccos[i] = D*ccos[i];
  }
}
// Rotate coefficients around axis v by angle alpha.
// This is equal to rotating the object in Euclidean space
// XXX HG has this in the neg trigo direction!!!
Rotate coefficients around axis v by angle alpha.
This is equal to rotating the object in Euclidean space
XXX HG has this in the neg trigo direction
Rotate coefficients around axis v by angle alpha . This is equal to rotating the object in Euclidean space XXX HG has this in the neg trigo direction
void FourierKnot::rotate(const Vector3 v,float alpha) {
  Matrix3 D; D.rotAround(v,alpha);
  c0 = D*c0;
  for (uint i=0;i<csin.size();++i) {
    csin[i] = D*csin[i];
    ccos[i] = D*ccos[i];
  }
}
void FourierKnot :: rotate ( const Vector3 v , float alpha ) { Matrix3 D ; D . rotAround ( v , alpha ) ; c0 = D * c0 ; for ( uint i = 0 ; i < csin . size ( ) ; ++ i ) { csin [ i ] = D * csin [ i ] ; ccos [ i ] = D * ccos [ i ] ; } }
Rotate coefficients around axis v by angle alpha.
Rotate coefficients around axis v by angle alpha .
// This rotation matrix has a trigo pos orientation!