Ignore:
Timestamp:
Aug 18, 2009, 8:48:06 AM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
66ce7a
Parents:
3de1d2
git-author:
Frederik Heber <heber@…> (08/18/09 08:38:46)
git-committer:
Frederik Heber <heber@…> (08/18/09 08:48:06)
Message:

Incorporation of Unit test on class Vector.

  • new file leastsquaremin.[ch]pp has least square minimisation which is otherwise unclean between classes molecules and Vector

Unit test (later tests rely on good results of earlier ones)

changes to class Vector:

  • Vector::IsNull() -> IsZero()
  • new function Vector::IsOne() similar to IsZero()
  • BUGFIX: Vector::IsNULL() (thx to unit test :)
  • Tesselation::getAngle() changed due to above rename
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/tesselation.cpp

    r3de1d2 rda84d6  
    29382938double getAngle(const Vector &point, const Vector &reference, const Vector OrthogonalVector)
    29392939{
    2940   if (reference.IsNull())
     2940  if (reference.IsZero())
    29412941    return M_PI;
    29422942
    29432943  // calculate both angles and correct with in-plane vector
    2944   if (point.IsNull())
     2944  if (point.IsZero())
    29452945    return M_PI;
    29462946  double phi = point.Angle(&reference);
Note: See TracChangeset for help on using the changeset viewer.