Changes in src/Line.hpp [6f646d:5589858]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Line.hpp
r6f646d r5589858 12 12 13 13 #include <memory> 14 #include <vector> 14 15 15 16 class Vector; 17 class Plane; 16 18 17 19 class Line : public Space 18 20 { 19 21 public: 20 Line(Vector &_origin, Vector &_direction); 22 Line(const Vector &_origin, const Vector &_direction); 23 Line(const Line& _src); 21 24 virtual ~Line(); 22 25 23 virtual double distance(const Vector &point) const=0; 24 virtual Vector getClosestPoint(const Vector &point) const=0; 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; 25 39 26 40 private: … … 29 43 }; 30 44 45 /** 46 * Named constructor to make a line through two points 47 */ 48 Line makeLineThrough(const Vector &x1, const Vector &x2); 49 31 50 #endif /* LINE_HPP_ */
Note:
See TracChangeset
for help on using the changeset viewer.