Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/molecule_geometry.cpp

    r68f03d rccf826  
    1616#include "molecule.hpp"
    1717#include "World.hpp"
     18#include "Plane.hpp"
    1819
    1920/************************************* Functions for class molecule *********************************/
     
    251252void molecule::Mirror(const Vector *n)
    252253{
    253   ActOnAllVectors( &Vector::Mirror, *n );
     254  Plane p(*n,0);
     255  // TODO: replace with simpler construct (e.g. Boost::foreach)
     256  // once the structure of the atom list is fully reworked
     257  atom *Walker = start;
     258  while (Walker->next != end) {
     259    Walker = Walker->next;
     260    (*Walker->node) = p.mirrorVector(*Walker->node);
     261  }
    254262};
    255263
Note: See TracChangeset for help on using the changeset viewer.