mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
17 lines
328 B
C++
17 lines
328 B
C++
#pragma once
|
|
|
|
#include <iostream>
|
|
#include <glm/glm.hpp>
|
|
|
|
template<int N, typename T>
|
|
std::ostream& operator<<(std::ostream& out, const glm::vec<N, T>& vec) {
|
|
out << "{";
|
|
for (int i = 0; i < N; i++) {
|
|
if (i > 0) {
|
|
out << ", ";
|
|
}
|
|
out << vec[i];
|
|
}
|
|
out << "}";
|
|
return out;
|
|
}
|