fourierknots/fourier_syn.cpp
void FourierKnot::mirror(const Vector3 v) {
  Vector3 v2 = v/v.norm();
  c0 = c0 -2*v2.dot(c0)*v2;
  for (uint i=0;i<csin.size();++i) {
    csin[i] = csin[i]- 2*v2.dot(csin[i])*v2;
    ccos[i] = ccos[i]- 2*v2.dot(ccos[i])*v2;
  }
}
/*!
  Mirror image of the knot along the axis v
*/
Mirror image of the knot along the axis v
Mirror image of the knot along the axis v
void FourierKnot::mirror(const Vector3 v) {
  Vector3 v2 = v/v.norm();
  c0 = c0 -2*v2.dot(c0)*v2;
  for (uint i=0;i<csin.size();++i) {
    csin[i] = csin[i]- 2*v2.dot(csin[i])*v2;
    ccos[i] = ccos[i]- 2*v2.dot(ccos[i])*v2;
  }
}
void FourierKnot :: mirror ( const Vector3 v ) { Vector3 v2 = v / v . norm ( ) ; c0 = c0 - 2 * v2 . dot ( c0 ) * v2 ; for ( uint i = 0 ; i < csin . size ( ) ; ++ i ) { csin [ i ] = csin [ i ] - 2 * v2 . dot ( csin [ i ] ) * v2 ; ccos [ i ] = ccos [ i ] - 2 * v2 . dot ( ccos [ i ] ) * v2 ; } }
Mirror image of the knot along the axis v
Mirror image of the knot along the axis v