diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-06-13 11:58:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-13 11:58:24 +0200 |
commit | 600b4c9c7b11622e4eb5ed1e5fd70b3d3f66170e (patch) | |
tree | 1b246c4e0efba31a91fbfafa15380f99c45708f0 /core/math/quaternion.cpp | |
parent | f4ab76444fc166c592b9b11cb9bd51f3b51a2e77 (diff) | |
parent | 554c776e08c9ee35fa9e2677e02f4005c11ddbc0 (diff) | |
download | redot-engine-600b4c9c7b11622e4eb5ed1e5fd70b3d3f66170e.tar.gz |
Merge pull request #34668 from aaronfranke/to-string
[Core] Reformat structure string operators
Diffstat (limited to 'core/math/quaternion.cpp')
-rw-r--r-- | core/math/quaternion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/quaternion.cpp b/core/math/quaternion.cpp index 8de3d0cc2a..7037db7112 100644 --- a/core/math/quaternion.cpp +++ b/core/math/quaternion.cpp @@ -181,7 +181,7 @@ Quaternion Quaternion::cubic_slerp(const Quaternion &p_b, const Quaternion &p_pr } Quaternion::operator String() const { - return String::num(x) + ", " + String::num(y) + ", " + String::num(z) + ", " + String::num(w); + return "(" + String::num_real(x, false) + ", " + String::num_real(y, false) + ", " + String::num_real(z, false) + ", " + String::num_real(w, false) + ")"; } Quaternion::Quaternion(const Vector3 &p_axis, real_t p_angle) { |