Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Line.hpp

    r5589858 r6f646d  
    1212
    1313#include <memory>
    14 #include <vector>
    1514
    1615class Vector;
    17 class Plane;
    1816
    1917class Line : public Space
    2018{
    2119public:
    22   Line(const Vector &_origin, const Vector &_direction);
    23   Line(const Line& _src);
     20  Line(Vector &_origin, Vector &_direction);
    2421  virtual ~Line();
    2522
    26   virtual double distance(const Vector &point) const;
    27   virtual Vector getClosestPoint(const Vector &point) const;
    28 
    29   Vector getDirection() const;
    30   Vector getOrigin() const;
    31 
    32   std::vector<Vector> getPointsOnLine() const;
    33 
    34   Vector getIntersection(const Line& otherLine) const;
    35 
    36   Vector rotateVector(const Vector &rhs, double alpha) const;
    37 
    38   Plane getOrthogonalPlane(const Vector &origin) const;
     23  virtual double distance(const Vector &point) const=0;
     24  virtual Vector getClosestPoint(const Vector &point) const=0;
    3925
    4026private:
     
    4329};
    4430
    45 /**
    46  * Named constructor to make a line through two points
    47  */
    48 Line makeLineThrough(const Vector &x1, const Vector &x2);
    49 
    5031#endif /* LINE_HPP_ */
Note: See TracChangeset for help on using the changeset viewer.