Ignore:
Timestamp:
Apr 13, 2010, 1:22:42 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
e7ea64
Parents:
0f55b2
Message:

Prepared interface of Vector Class for transition to VectorComposites

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/atom.cpp

    r0f55b2 r1f591b  
    3333{
    3434  type = pointer->type;  // copy element of atom
    35   x.CopyVector(&pointer->x); // copy coordination
    36   v.CopyVector(&pointer->v); // copy velocity
     35  x = pointer->x; // copy coordination
     36  v = pointer->v; // copy velocity
    3737  FixedIon = pointer->FixedIon;
    3838  node = &x;
     
    4646  res->sort = &nr;
    4747  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;
    5050  res->FixedIon = FixedIon;
    5151  res->node = &x;
     
    252252double atom::DistanceSquaredToVector(const Vector &origin) const
    253253{
    254   return origin.DistanceSquared(&x);
     254  return origin.DistanceSquared(x);
    255255};
    256256
     
    261261double atom::DistanceToVector(const Vector &origin) const
    262262{
    263   return origin.Distance(&x);
     263  return origin.Distance(x);
    264264};
    265265
Note: See TracChangeset for help on using the changeset viewer.