Move operator << inside CGAL::qglviewer namespace.

This commit is contained in:
Guillaume Damiand 2018-09-11 17:26:15 +02:00
parent 1db0bd0a79
commit 865e6bf01e
4 changed files with 11 additions and 11 deletions

View File

@ -333,8 +333,8 @@ private:
qreal q[4];
};
std::ostream &operator<<(std::ostream &o, const Quaternion &);
}} // namespace CGAL::qglviewer
std::ostream &operator<<(std::ostream &o, const CGAL::qglviewer::Quaternion &);
#endif // QGLVIEWER_QUATERNION_H

View File

@ -551,10 +551,10 @@ Quaternion Quaternion::randomQuaternion() {
qreal t2 = 2.0 * CGAL_PI * (rand() / (qreal)RAND_MAX);
return Quaternion(sin(t1) * r1, cos(t1) * r1, sin(t2) * r2, cos(t2) * r2);
}
}} // namespace CGAL::qglviewer
CGAL_INLINE_FUNCTION
std::ostream &operator<<(std::ostream &o, const CGAL::qglviewer::Quaternion &Q) {
std::ostream &operator<<(std::ostream &o, const Quaternion &Q) {
return o << Q[0] << '\t' << Q[1] << '\t' << Q[2] << '\t' << Q[3];
}
}} // namespace CGAL::qglviewer

View File

@ -361,8 +361,8 @@ cout << "Position=" << pos << endl;
#endif
};
std::ostream &operator<<(std::ostream &o, const Vec &);
}} // namespace CGAL::qglviewer
std::ostream &operator<<(std::ostream &o, const CGAL::qglviewer::Vec &);
#endif // QGLVIEWER_VEC_H

View File

@ -174,9 +174,9 @@ void Vec::initFromDOMElement(const QDomElement &element) {
*this = v;
}
}} // namespace CGAL::qglviewer
CGAL_INLINE_FUNCTION
std::ostream &operator<<(std::ostream &o, const CGAL::qglviewer::Vec &v) {
std::ostream &operator<<(std::ostream &o, const Vec &v) {
return o << v.x << '\t' << v.y << '\t' << v.z;
}
}
}} // namespace CGAL::qglviewer