mirror of https://github.com/CGAL/cgal
Move operator << inside CGAL::qglviewer namespace.
This commit is contained in:
parent
1db0bd0a79
commit
865e6bf01e
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue