Changeset 1f591b for molecuilder/src/atom.cpp
- Timestamp:
- Apr 13, 2010, 1:22:42 PM (16 years ago)
- Children:
- e7ea64
- Parents:
- 0f55b2
- File:
-
- 1 edited
-
molecuilder/src/atom.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/atom.cpp
r0f55b2 r1f591b 33 33 { 34 34 type = pointer->type; // copy element of atom 35 x .CopyVector(&pointer->x); // copy coordination36 v .CopyVector(&pointer->v); // copy velocity35 x = pointer->x; // copy coordination 36 v = pointer->v; // copy velocity 37 37 FixedIon = pointer->FixedIon; 38 38 node = &x; … … 46 46 res->sort = &nr; 47 47 res->type = type; 48 res->x .CopyVector(&this->x);49 res->v .CopyVector(&this->v);48 res->x = this->x; 49 res->v = this->v; 50 50 res->FixedIon = FixedIon; 51 51 res->node = &x; … … 252 252 double atom::DistanceSquaredToVector(const Vector &origin) const 253 253 { 254 return origin.DistanceSquared( &x);254 return origin.DistanceSquared(x); 255 255 }; 256 256 … … 261 261 double atom::DistanceToVector(const Vector &origin) const 262 262 { 263 return origin.Distance( &x);263 return origin.Distance(x); 264 264 }; 265 265
Note:
See TracChangeset
for help on using the changeset viewer.
