Changes in src/atom.cpp [ad2b411:c550dd]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/atom.cpp
rad2b411 rc550dd 17 17 #include "World.hpp" 18 18 #include "molecule.hpp" 19 #include "Shapes/Shape.hpp" 19 20 20 21 /************************************* Functions for class atom *************************************/ … … 112 113 * \return true - is inside, false - is not 113 114 */ 114 bool atom::IsIn Parallelepiped(const Vector offset, const double *parallelepiped) const115 { 116 return (node->IsInParallelepiped(offset, parallelepiped));115 bool atom::IsInShape(const Shape& shape) const 116 { 117 return shape.isInside(*node); 117 118 }; 118 119 … … 159 160 * \return true - \a *out present, false - \a *out is NULL 160 161 */ 161 bool atom::OutputArrayIndexed(o fstream * const out, const int *ElementNo, int *AtomNo, const char *comment) const162 bool atom::OutputArrayIndexed(ostream * const out, const int *ElementNo, int *AtomNo, const char *comment) const 162 163 { 163 164 AtomNo[type->Z]++; // increment number … … 236 237 * \param *AtomNo pointer to atom counter that is increased by one 237 238 */ 238 void atom::OutputMPQCLine(o fstream * const out, const Vector *center, int *AtomNo = NULL) const239 void atom::OutputMPQCLine(ostream * const out, const Vector *center, int *AtomNo = NULL) const 239 240 { 240 241 *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.