mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 05:58:27 +02:00
add debeg streaming to Extents
This commit is contained in:
parent
102d02d396
commit
e235af1331
1 changed files with 14 additions and 0 deletions
|
@ -15,6 +15,9 @@
|
|||
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
#include <QDebug>
|
||||
#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
|
Loading…
Reference in a new issue