diff options
author | Marc <marc.gilleron@gmail.com> | 2021-01-31 20:02:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-31 20:02:06 +0000 |
commit | e76efdd3ab18092f65a2bea8ca92e604420fce2f (patch) | |
tree | f8e4f63e1f5e99552534e4a604ce9146b7593bf6 /src/core/Basis.cpp | |
parent | 18e1b262ff503543912a9fb39a2502e5bb9a865d (diff) | |
parent | 8e1cc29c66cc4dd28721a0367ef2f55464e9f026 (diff) | |
download | redot-cpp-e76efdd3ab18092f65a2bea8ca92e604420fce2f.tar.gz |
Merge pull request #481 from Zylann/vec_constants
Added missing constants to Vector2, Vector3, Basis and Quat
Diffstat (limited to 'src/core/Basis.cpp')
-rw-r--r-- | src/core/Basis.cpp | 5 |
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; |