From 85f13a0d240114b9d858b7fe9ea53ecab3dcde68 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Thu, 8 Aug 2019 20:29:45 -0700 Subject: Add Basis constants and format Transform constants --- core/math/transform.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/math/transform.cpp') 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); +} -- cgit v1.2.3