summaryrefslogtreecommitdiff
path: root/core/math/transform.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-08-12 12:42:30 +0200
committerGitHub <noreply@github.com>2019-08-12 12:42:30 +0200
commit5441aaf768d6dd4c3d8465e6b340ae38ddc7db1d (patch)
tree136ddb200eab2bab9124e4375dad9b435f7d5113 /core/math/transform.cpp
parente23f5e6415758e4eae0a5ba635afaba7d654c09f (diff)
parent85f13a0d240114b9d858b7fe9ea53ecab3dcde68 (diff)
Merge pull request #31228 from aaronfranke/identity-constants
Add Basis constants and format Transform constants
Diffstat (limited to 'core/math/transform.cpp')
-rw-r--r--core/math/transform.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/math/transform.cpp b/core/math/transform.cpp
index 7ff7cac914..4056975da8 100644
--- a/core/math/transform.cpp
+++ b/core/math/transform.cpp
@@ -213,3 +213,8 @@ Transform::Transform(const Basis &p_basis, const Vector3 &p_origin) :
basis(p_basis),
origin(p_origin) {
}
+
+Transform::Transform(real_t xx, real_t xy, real_t xz, real_t yx, real_t yy, real_t yz, real_t zx, real_t zy, real_t zz, real_t ox, real_t oy, real_t oz) {
+ basis = Basis(xx, xy, xz, yx, yy, yz, zx, zy, zz);
+ origin = Vector3(ox, oy, oz);
+}