Ignore:
Timestamp:
Apr 7, 2010, 3:45:38 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
0f55b2
Parents:
770138
Message:

Made data internal data-structure of vector class private

  • Replaced occurences of access to internals with operator
  • moved Vector-class into LinAlg-Module
  • Reworked Vector to allow clean modularization
  • Added Plane class to describe arbitrary planes in 3d space
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/unittests/ActOnAllUnitTest.cpp

    r770138 r71910a  
    9999};
    100100
     101#if 0
     102
     103// Unitttest deactivated for now...
     104// Reasons:
     105//    Vector::MakeNormalVector has been removed and is now part of Plane class
     106//    VectorList::ActOnAll is in the test directory and seems to be used only for unittests
     107//    MakeNormal never depended on the input Vector except in the case of linear dependence (i.e. failure)
     108//
     109// TODO: Rethink what exactely is being tested at this point and introduce a new unittest for the
     110//       tested behaviour. Most likely this should result in a thourough unittest of the plane class
     111
    101112/** UnitTest for VectorList::ActOnAll() and Vector::MakeNormalVector()
    102113 */
     
    113124  // check that x and y components are zero
    114125  for (ListOfVectors::iterator Runner = VL.Vectors.begin(); Runner != VL.Vectors.end(); Runner++) {
    115     CPPUNIT_ASSERT_EQUAL( (*Runner)->x[0] , 0. );
    116     CPPUNIT_ASSERT_EQUAL( (*Runner)->x[1] , 0. );
     126    CPPUNIT_ASSERT_EQUAL( (*Runner)->at(0) , 0. );
     127    CPPUNIT_ASSERT_EQUAL( (*Runner)->at(1) , 0. );
    117128  }
    118129};
     130
     131#endif
Note: See TracChangeset for help on using the changeset viewer.