summaryrefslogtreecommitdiffstats
path: root/src/core/Basis.cpp
diff options
context:
space:
mode:
authorMarc <marc.gilleron@gmail.com>2021-01-31 20:06:56 +0000
committerGitHub <noreply@github.com>2021-01-31 20:06:56 +0000
commitb400dba87534640eeddbcdb6b319335a6a7639d8 (patch)
tree286a8e2e25c18fe11f346835b3021afae2e9b77f /src/core/Basis.cpp
parentfb71edd45b2473bf0ac502c777a1850fb564087e (diff)
parent05ba977cc60653952b73dc03498ebc7a93cef120 (diff)
downloadredot-cpp-b400dba87534640eeddbcdb6b319335a6a7639d8.tar.gz
Merge branch 'master' into container_leaks
Diffstat (limited to 'src/core/Basis.cpp')
-rw-r--r--src/core/Basis.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/Basis.cpp b/src/core/Basis.cpp
index 368afa1..903566c 100644
--- a/src/core/Basis.cpp
+++ b/src/core/Basis.cpp
@@ -7,6 +7,11 @@
namespace godot {
+const Basis Basis::IDENTITY = Basis();
+const Basis Basis::FLIP_X = Basis(-1, 0, 0, 0, 1, 0, 0, 0, 1);
+const Basis Basis::FLIP_Y = Basis(1, 0, 0, 0, -1, 0, 0, 0, 1);
+const Basis Basis::FLIP_Z = Basis(1, 0, 0, 0, 1, 0, 0, 0, -1);
+
Basis::Basis(const Vector3 &row0, const Vector3 &row1, const Vector3 &row2) {
elements[0] = row0;
elements[1] = row1;