Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/atom.cpp

    rad2b411 rc550dd  
    1717#include "World.hpp"
    1818#include "molecule.hpp"
     19#include "Shapes/Shape.hpp"
    1920
    2021/************************************* Functions for class atom *************************************/
     
    112113 * \return true - is inside, false - is not
    113114 */
    114 bool atom::IsInParallelepiped(const Vector offset, const double *parallelepiped) const
    115 {
    116   return (node->IsInParallelepiped(offset, parallelepiped));
     115bool atom::IsInShape(const Shape& shape) const
     116{
     117  return shape.isInside(*node);
    117118};
    118119
     
    159160  * \return true - \a *out present, false - \a *out is NULL
    160161 */
    161 bool atom::OutputArrayIndexed(ofstream * const out, const int *ElementNo, int *AtomNo, const char *comment) const
     162bool atom::OutputArrayIndexed(ostream * const out, const int *ElementNo, int *AtomNo, const char *comment) const
    162163{
    163164  AtomNo[type->Z]++;  // increment number
     
    236237 * \param *AtomNo pointer to atom counter that is increased by one
    237238 */
    238 void atom::OutputMPQCLine(ofstream * const out, const Vector *center, int *AtomNo = NULL) const
     239void atom::OutputMPQCLine(ostream * const out, const Vector *center, int *AtomNo = NULL) const
    239240{
    240241  *out << "\t\t" << type->symbol << " [ " << x[0]-center->at(0) << "\t" << x[1]-center->at(1) << "\t" << x[2]-center->at(2) << " ]" << endl;
Note: See TracChangeset for help on using the changeset viewer.