Ignore:
Timestamp:
Aug 6, 2008, 9:02:01 AM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
67f102
Parents:
0a08df
Message:

Rename of class vector to Vector to avoid conflict with vector from STL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/boundary.cpp

    r0a08df r8f8621  
    151151};
    152152
    153 void BoundaryTriangleSet::GetNormalVector(vector &NormalVector)
     153void BoundaryTriangleSet::GetNormalVector(Vector &NormalVector)
    154154{
    155155  // get normal vector
     
    211211  Boundaries *BoundaryPoints = new Boundaries [NDIM];  // first is alpha, second is (r, nr)
    212212  BoundariesTestPair BoundaryTestPair;
    213   vector AxisVector, AngleReferenceVector, AngleReferenceNormalVector;
     213  Vector AxisVector, AngleReferenceVector, AngleReferenceNormalVector;
    214214  double radius, angle;
    215215  // 3a. Go through every axis
     
    233233    while (Walker->next != mol->end) {
    234234      Walker = Walker->next;
    235       vector ProjectedVector;
     235      Vector ProjectedVector;
    236236      ProjectedVector.CopyVector(&Walker->x);
    237237      ProjectedVector.ProjectOntoPlane(&AxisVector);
     
    316316        // construct the vector of each side of the triangle on the projected plane (defined by normal vector AxisVector)
    317317        {
    318           vector SideA, SideB, SideC, SideH;
     318          Vector SideA, SideB, SideC, SideH;
    319319          SideA.CopyVector(&left->second.second->x);
    320320          SideA.ProjectOntoPlane(&AxisVector);
     
    394394    GreatestDiameter[i] = 0.;
    395395  double OldComponent, tmp, w1, w2;
    396   vector DistanceVector, OtherVector;
     396  Vector DistanceVector, OtherVector;
    397397  int component, Othercomponent;
    398398  for(int axis=0;axis<NDIM;axis++) { // regard each projected plane
     
    470470  double PyramidVolume = 0.;
    471471  double G,h;
    472   vector x,y;
     472  Vector x,y;
    473473  double a,b,c;
    474474
    475475  // 1. calculate center of gravity
    476476  *out << endl;
    477   vector *CenterOfGravity = mol->DetermineCenterOfGravity(out);
     477  Vector *CenterOfGravity = mol->DetermineCenterOfGravity(out);
    478478 
    479479  // 2. translate all points into CoG
     
    578578    clustervolume = ClusterVolume;
    579579  double *GreatestDiameter = GetDiametersOfCluster(out, BoundaryPoints, mol, IsAngstroem);
    580   vector BoxLengths;
     580  Vector BoxLengths;
    581581  int repetition[NDIM] = {1, 1, 1};
    582582  int TotalNoClusters = 1;
     
    755755  class BoundaryPointSet *peak = NULL;
    756756  double SmallestAngle, TempAngle;
    757   vector NormalVector, VirtualNormalVector, CenterVector, TempVector, PropagationVector;
     757  Vector NormalVector, VirtualNormalVector, CenterVector, TempVector, PropagationVector;
    758758  LineMap::iterator LineChecker[2];
    759759  do {
Note: See TracChangeset for help on using the changeset viewer.