diff --git a/src/line.inl b/src/line.inl index 8487f5c..6aae70b 100644 --- a/src/line.inl +++ b/src/line.inl @@ -116,4 +116,17 @@ namespace cloonel { const T dotproduct = dot(linePerp, pt); return (dotproduct <= T(0)); } + +#if !defined(NDEBUG) + ///-------------------------------------------------------------------------- + ///-------------------------------------------------------------------------- + template + std::ostream& operator<< ( std::ostream& parStream, const Line& parLine ) { + for (uint32_t z = 0; z < S - 1; ++z) { + parStream << parLine[z] << "-"; + } + parStream << parLine[S - 1]; + return parStream; + } +#endif } //namespace cloonel