From e235af1331d592ef1f91bca630e0250d8dbfc075 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Tue, 14 Oct 2014 17:16:49 -0700 Subject: [PATCH] add debeg streaming to Extents --- libraries/shared/src/Extents.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/libraries/shared/src/Extents.h b/libraries/shared/src/Extents.h index 2da3042467..95f242c30b 100644 --- a/libraries/shared/src/Extents.h +++ b/libraries/shared/src/Extents.h @@ -15,6 +15,9 @@ #include +#include +#include "StreamUtils.h" + class Extents { public: /// set minimum and maximum to FLT_MAX and -FLT_MAX respectively @@ -54,4 +57,15 @@ public: glm::vec3 maximum; }; +inline QDebug operator<<(QDebug debug, const Extents& extents) { + debug << "Extents[ (" + << extents.minimum << " ) to (" + << extents.maximum << ") size: (" + << (extents.maximum - extents.minimum) << ")" + << " ]"; + + return debug; +} + + #endif // hifi_Extents_h \ No newline at end of file