Skip to content

Commit 87c9938

Browse files
committed
vec2 to string
1 parent 6d72976 commit 87c9938

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/kit/math/vectorops.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ namespace Vector
2121
// return true;
2222
// return false;
2323
// }
24+
inline std::string to_string(const glm::vec2& v) {
25+
return std::string("(") +
26+
std::to_string(v.x) + ", " +
27+
std::to_string(v.y) + ")";
28+
}
2429
inline std::string to_string(const glm::vec3& v) {
2530
return std::string("(") +
2631
std::to_string(v.x) + ", " +

0 commit comments

Comments
 (0)