Ignore:
Timestamp:
Aug 19, 2009, 12:22:08 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
6c09a4
Parents:
da84d6
Message:

Replaced Vector::Projection() by Vector::ScalarProduct()

  • Projection before was just a return of the Vector::ScalarProduct(). We change it now, to make it return a projected vector, the counterpart to ProjectOntoPlane
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/builder.cpp

    rda84d6 r66ce7a  
    188188          // remove the projection onto the rotation plane of the second angle
    189189          n.CopyVector(&y);
    190           n.Scale(first->x.Projection(&y));
     190          n.Scale(first->x.ScalarProduct(&y));
    191191          cout << "N1: ",
    192192          n.Output((ofstream *)&cout);
     
    197197          cout << endl;
    198198          n.CopyVector(&z);
    199           n.Scale(first->x.Projection(&z));
     199          n.Scale(first->x.ScalarProduct(&z));
    200200          cout << "N2: ",
    201201          n.Output((ofstream *)&cout);
Note: See TracChangeset for help on using the changeset viewer.