line2d(T xa, T ya, T xb, T yb) : start(xa, ya), end(xb, yb) {}\r
//! Constructor for line between the two points given as vectors.\r
line2d(const vector2d<T>& start, const vector2d<T>& end) : start(start), end(end) {}\r
- //! Copy constructor.\r
- line2d(const line2d<T>& other) : start(other.start), end(other.end) {}\r
\r
// operators\r
\r
}\r
\r
//! Get the closest point on this line to a point\r
- /** \param checkOnlySegments: Default (true) is to return a point on the line-segment (between begin and end) of the line.\r
+ /** \param point: Starting search at this point\r
+ \param checkOnlySegments: Default (true) is to return a point on the line-segment (between begin and end) of the line.\r
When set to false the function will check for the first the closest point on the the line even when outside the segment. */\r
vector2d<T> getClosestPoint(const vector2d<T>& point, bool checkOnlySegments=true) const\r
{\r