From 480a5ce0ee31646c8f696d3f0572d0e3453c3d36 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sat, 5 Oct 2019 19:00:09 +0200 Subject: moved Matrix34 below Vec3 and inlined Transform routine to Matrix34 --- TestDLL/HuntClasses.h | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) (limited to 'TestDLL/HuntClasses.h') diff --git a/TestDLL/HuntClasses.h b/TestDLL/HuntClasses.h index b3796b6..f7807e5 100644 --- a/TestDLL/HuntClasses.h +++ b/TestDLL/HuntClasses.h @@ -13,22 +13,6 @@ struct ISystem; #define ENTITY_FLAG_SEND_RENDER_EVENT 0x20000 #define ENTITY_FLAG_CASTSHADOW 0x1 -class Matrix34 { -public: - float m00; - float m01; - float m02; - float m03; - float m10; - float m11; - float m12; - float m13; - float m20; - float m21; - float m22; - float m23; -}; - template class _smart_ptr { private: @@ -157,7 +141,6 @@ struct INumberVector : INumberArray { }; -template struct Vec3_tpl; template struct Vec3_tpl : INumberVector> { @@ -167,9 +150,22 @@ public: }; typedef Vec3_tpl Vec3; -static inline Vec3_tpl TranslateMat34ToVec3(const Matrix34 &mat34) { - return Vec3_tpl(mat34.m03, mat34.m13, mat34.m23); -} +class Matrix34 { +public: + float m00; + float m01; + float m02; + float m03; + float m10; + float m11; + float m12; + float m13; + float m20; + float m21; + float m22; + float m23; + Vec3 GetTranslation() const { return Vec3(m03, m13, m23); } +}; enum EDrawTextFlags : UINT32 { -- cgit v1.2.3