Ignore:
Timestamp:
Apr 30, 2010, 1:33:12 PM (15 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
25e17e9
Parents:
4eee8f
Message:

Added unittests for planes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Plane.hpp

    r4eee8f r59e7832  
    1111#include <memory>
    1212#include <vector>
     13#include <iostream>
    1314#include "Space.hpp"
    1415#include "Exceptions/LinearDependenceException.hpp"
     
    2223public:
    2324  Plane(const Vector &y1, const Vector &y2, const Vector &y3) throw(LinearDependenceException);
    24   Plane(const Vector &y1, const Vector &y2, double _offset) throw(LinearDependenceException);
    25   Plane(const Vector &_normalVector, double _offset=0)  throw(ZeroVectorException);
     25  Plane(const Vector &y1, const Vector &y2, double _offset) throw(ZeroVectorException,LinearDependenceException);
     26  Plane(const Vector &_normalVector, double _offset)  throw(ZeroVectorException);
    2627  Plane(const Vector &_normalVector, const Vector &_offsetVector) throw(ZeroVectorException);
    2728  virtual ~Plane();
     
    3132   * returns normal Vector for a plane
    3233   */
    33   Vector getNormal();
     34  Vector getNormal() const;
    3435  /**
    3536   * returns the distance of the plane from the origin
    3637   */
    37   double getOffset();
     38  double getOffset() const;
    3839  /**
    3940   * returns a vector that points on the plane.
     
    6061};
    6162
     63std::ostream &operator<< (std::ostream &ost,const Plane& p);
     64
    6265#endif /* PLANE_HPP_ */
Note: See TracChangeset for help on using the changeset viewer.