Changeset 7a8319


Ignore:
Timestamp:
Apr 30, 2010, 9:23:37 AM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
aab470
Parents:
0e9394
Message:

Added more Exceptions to the project to signal differen Math erorrs

Location:
molecuilder/src
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Exceptions/LinearDependenceException.cpp

    r0e9394 r7a8319  
    1111
    1212LinearDependenceException::LinearDependenceException(string _file, int _line) :
    13   CustomException(_file,_line)
     13  MathException(_file,_line)
    1414{}
    1515
  • molecuilder/src/Exceptions/LinearDependenceException.hpp

    r0e9394 r7a8319  
    99#define LINEARDEPENDENCEEXCEPTION_HPP_
    1010
    11 #include "Exceptions/CustomException.hpp"
     11#include "Exceptions/MathException.hpp"
    1212
    13 class LinearDependenceException : public CustomException
     13class LinearDependenceException : public MathException
    1414{
    1515public:
  • molecuilder/src/Makefile.am

    r0e9394 r7a8319  
    8484
    8585EXCEPTIONSOURCE = Exceptions/CustomException.cpp \
    86                                   Exceptions/LinearDependenceException.cpp
     86                                  Exceptions/LinearDependenceException.cpp \
     87                                  Exceptions/MathException.cpp \
     88                                  Exceptions/ZeroVectorException.cpp
    8789                                 
    8890EXCEPTIONHEADER = Exceptions/CustomException.hpp \
    89                                   Exceptions/LinearDependenceException.hpp
     91                                  Exceptions/LinearDependenceException.hpp \
     92                                  Exceptions/MathException.hpp \
     93                                  Exceptions/ZeroVectorException.hpp
    9094
    9195SOURCE = ${ANALYSISSOURCE} \
  • molecuilder/src/Plane.cpp

    r0e9394 r7a8319  
    8181    normalVector(new Vector(_normalVector))
    8282{
     83  normalVector->Normalize();
    8384  offset = normalVector->ScalarProduct(_offsetVector);
    8485}
Note: See TracChangeset for help on using the changeset viewer.