Standardize include guards, clang-format headers

Former-commit-id: 261ee48bba
This commit is contained in:
2022-10-09 01:13:17 -04:00
parent 68d30b954d
commit 7f83e1fa03
341 changed files with 1373 additions and 1256 deletions

View File

@@ -1,5 +1,5 @@
#ifndef _CACTOR_HPP
#define _CACTOR_HPP
#ifndef _CACTOR
#define _CACTOR
#include "types.h"
@@ -262,12 +262,8 @@ public:
SetTransformDirtySpare(true);
SetPreRenderHasMoved(true);
}
void SetRotation(const CQuaternion& rot) {
SetTransform(rot.BuildTransform4f(GetTranslation()));
}
CQuaternion GetRotation() const {
return CQuaternion::FromMatrix(GetTransform());
}
void SetRotation(const CQuaternion& rot) { SetTransform(rot.BuildTransform4f(GetTranslation())); }
CQuaternion GetRotation() const { return CQuaternion::FromMatrix(GetTransform()); }
CVector3f GetTranslation() const { return x34_transform.GetTranslation(); }
void SetTranslation(const CVector3f& vec);
CTransform4f GetLocatorTransform(const rstl::string& segName) const;
@@ -399,4 +395,4 @@ protected:
};
CHECK_SIZEOF(CActor, 0xe8)
#endif
#endif // _CACTOR