summaryrefslogtreecommitdiff
path: root/core/math/plane.cpp
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2021-02-25 09:54:50 -0500
committerAaron Franke <arnfranke@yahoo.com>2021-06-11 10:53:20 -0400
commit554c776e08c9ee35fa9e2677e02f4005c11ddbc0 (patch)
tree1ea2b367e5cd59a8c9b049ceaeb0d6f4253f9aed /core/math/plane.cpp
parent6b0183ec893ddea3f8ae71005b5fce1ae988e8a0 (diff)
Reformat structure string operators
The order of numbers is not changed except for Transform2D. All logic is done inside of their structures (and not in Variant). For the number of decimals printed, they now use String::num_real which works best with real_t, except for Color which is fixed at 4 decimals (this is a reliable number of float digits when converting from 16-bpc so it seems like a good choice)
Diffstat (limited to 'core/math/plane.cpp')
-rw-r--r--core/math/plane.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/plane.cpp b/core/math/plane.cpp
index f1d3bbbd54..3c78b55b90 100644
--- a/core/math/plane.cpp
+++ b/core/math/plane.cpp
@@ -175,5 +175,5 @@ bool Plane::is_equal_approx(const Plane &p_plane) const {
}
Plane::operator String() const {
- return normal.operator String() + ", " + rtos(d);
+ return "[N: " + normal.operator String() + ", D: " + String::num_real(d, false) + "]";
}