Bugfix in Line class.
A constructor was wrong and the loop was wrong as well.
This commit is contained in:
parent
3522ce37a3
commit
c12a6407d9
2 changed files with 15 additions and 7 deletions
|
@ -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(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue