1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Prettier str() for some math types

This commit is contained in:
Ignacio Etcheverry
2016-07-26 17:19:49 +02:00
parent 6273ec901f
commit eefca1ada9
5 changed files with 17 additions and 10 deletions

View File

@@ -182,5 +182,5 @@ Vector3 Vector3::cubic_interpolate(const Vector3& p_b,const Vector3& p_pre_a, co
# endif
Vector3::operator String() const {
return (rtos(x)+", "+rtos(y)+", "+rtos(z));
return "("+(rtos(x)+", "+rtos(y)+", "+rtos(z))+")";
}