diff options
Diffstat (limited to 'src/libvpsc')
| -rw-r--r-- | src/libvpsc/linesegment.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libvpsc/linesegment.h b/src/libvpsc/linesegment.h index caca3a2bb..ecf8800b0 100644 --- a/src/libvpsc/linesegment.h +++ b/src/libvpsc/linesegment.h @@ -103,21 +103,21 @@ void DoLineSegmentIntersection(const Vector& p0, const Vector& p1, const Vector& Vector intersection; std::cout << "Line Segment 0: (" << p0.x_ << ", " << p0.y_ << ") to (" << p1.x_ << ", " << p1.y_ << ")\n" - << "Line Segment 1: (" << p2.x_ << ", " << p2.y_ << ") to (" << p3.x_ << ", " << p3.y_ << ")\n"; + << "Line Segment 1: (" << p2.x_ << ", " << p2.y_ << ") to (" << p3.x_ << ", " << p3.y_ << ")" << std::endl; switch(linesegment0.Intersect(linesegment1, intersection)) { case LineSegment::PARALLEL: - std::cout << "The lines are parallel\n\n"; + std::cout << "The lines are parallel\n" << std::endl; break; case LineSegment::COINCIDENT: - std::cout << "The lines are coincident\n\n"; + std::cout << "The lines are coincident\n" << std::endl; break; case LineSegment::NOT_INTERSECTING: - std::cout << "The lines do not intersect\n\n"; + std::cout << "The lines do not intersect\n" << std::endl; break; case LineSegment::INTERSECTING: - std::cout << "The lines intersect at (" << intersection.x_ << ", " << intersection.y_ << ")\n\n"; + std::cout << "The lines intersect at (" << intersection.x_ << ", " << intersection.y_ << ")\n" << std::endl; break; } } |
