aboutsummaryrefslogtreecommitdiff
path: root/core/math/transform.h
diff options
context:
space:
mode:
authorFerenc Arn2017-05-22 17:06:42 -0500
committerFerenc Arn2017-05-31 13:58:31 -0500
commita1c8896d9d1b4806ad59502aa17c9b6e87d5eb74 (patch)
treec8224c414cf681a07d4e39d068f7e69b7af75531 /core/math/transform.h
parent9e2b3f0903a74c009825561559d20bfc48062446 (diff)
downloadgodot-a1c8896d9d1b4806ad59502aa17c9b6e87d5eb74.tar.gz
godot-a1c8896d9d1b4806ad59502aa17c9b6e87d5eb74.tar.zst
godot-a1c8896d9d1b4806ad59502aa17c9b6e87d5eb74.zip
Diffstat (limited to 'core/math/transform.h')
-rw-r--r--core/math/transform.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/core/math/transform.h b/core/math/transform.h
index 4731496bf..bbb25a420 100644
--- a/core/math/transform.h
+++ b/core/math/transform.h
@@ -97,15 +97,7 @@ public:
void set(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 tx, real_t ty, real_t tz) {
- basis.elements[0][0] = xx;
- basis.elements[0][1] = xy;
- basis.elements[0][2] = xz;
- basis.elements[1][0] = yx;
- basis.elements[1][1] = yy;
- basis.elements[1][2] = yz;
- basis.elements[2][0] = zx;
- basis.elements[2][1] = zy;
- basis.elements[2][2] = zz;
+ basis.set(xx, xy, xz, yx, yy, yz, zx, zy, zz);
origin.x = tx;
origin.y = ty;
origin.z = tz;