summaryrefslogtreecommitdiffstats
path: root/core/math/projection.cpp
diff options
context:
space:
mode:
authorGeorge L. Albany <Megacake1234@gmail.com>2024-11-27 21:15:49 +0000
committerGitHub <noreply@github.com>2024-11-27 21:15:49 +0000
commit85d87116e184e7923b8d6804cab2681b61c62d83 (patch)
tree55ec5bfa061a5c27272b831e697b78ed1b756a70 /core/math/projection.cpp
parentb06d20bf39d15ec736d08d4e4fcb32e0c3c1ce1e (diff)
parent721f53fde47c2727d99e3ecccdb789a67df36de0 (diff)
downloadredot-engine-85d87116e184e7923b8d6804cab2681b61c62d83.tar.gz
Merge pull request #886 from Spartan322/merge/f128f38HEADmaster
Merge commit godotengine/godot@f128f38
Diffstat (limited to 'core/math/projection.cpp')
-rw-r--r--core/math/projection.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/core/math/projection.cpp b/core/math/projection.cpp
index da28682393..4d71ef31f6 100644
--- a/core/math/projection.cpp
+++ b/core/math/projection.cpp
@@ -914,14 +914,10 @@ void Projection::set_light_atlas_rect(const Rect2 &p_rect) {
}
Projection::operator String() const {
- String str;
- for (int i = 0; i < 4; i++) {
- for (int j = 0; j < 4; j++) {
- str += String((j > 0) ? ", " : "\n") + rtos(columns[i][j]);
- }
- }
-
- return str;
+ return "[X: " + columns[0].operator String() +
+ ", Y: " + columns[1].operator String() +
+ ", Z: " + columns[2].operator String() +
+ ", W: " + columns[3].operator String() + "]";
}
real_t Projection::get_aspect() const {