diff options
| author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2016-07-26 17:19:49 +0200 |
|---|---|---|
| committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2016-07-27 17:00:07 +0200 |
| commit | eefca1ada97a6bc5db38936d23da323a78b2044d (patch) | |
| tree | 87d01d1fc9cc5a7ba2d11618bc99e751247be8e5 /core/math/quat.cpp | |
| parent | 6273ec901faec2823c8f4801244d1cffbbe9b118 (diff) | |
| download | redot-engine-eefca1ada97a6bc5db38936d23da323a78b2044d.tar.gz | |
Prettier str() for some math types
Diffstat (limited to 'core/math/quat.cpp')
| -rw-r--r-- | core/math/quat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/quat.cpp b/core/math/quat.cpp index c6c12129b3..5457638ada 100644 --- a/core/math/quat.cpp +++ b/core/math/quat.cpp @@ -252,7 +252,7 @@ Quat Quat::cubic_slerp(const Quat& q, const Quat& prep, const Quat& postq,const Quat::operator String() const { - return String::num(x)+","+String::num(y)+","+ String::num(z)+","+ String::num(w); + return "("+String::num(x)+", "+String::num(y)+", "+ String::num(z)+", "+ String::num(w)+")"; } Quat::Quat(const Vector3& axis, const real_t& angle) { |
