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