Bugfix in Line class.

A constructor was wrong and the loop was wrong as well.
This commit is contained in:
King_DuckZ 2014-08-01 16:42:42 +02:00
parent 3522ce37a3
commit c12a6407d9
2 changed files with 15 additions and 7 deletions

View file

@ -31,9 +31,10 @@ namespace cloonel {
typedef T Scalar;
Line ( void ) {}
explicit Line ( Scalar parValue );
Line ( const Line& parOther );
Line ( const Point& parStart, const Point& parEnd );
Line ( const Point& parStart, const Point& parDirection, Scalar parLength ) : Line(parStart, parDirection * parLength) { }
Line ( const Point& parStart, const Point& parDirection, Scalar parLength ) : Line(parStart, parStart + parDirection * parLength) { }
~Line ( void ) noexcept = default;
Point& Start ( void ) { return m_points.x(); }