godot_voxel/util/math/box3i.cpp
2022-04-09 15:00:34 +01:00

17 lines
306 B
C++

#include "box3i.h"
#include <sstream>
namespace zylann {
std::stringstream &operator<<(std::stringstream &ss, const Box3i &box) {
// TODO For some reason the one-liner version didn't compile?
ss << "(o:";
ss << box.pos;
ss << ", s:";
ss << box.size;
ss << ")";
return ss;
}
} // namespace zylann