mirror of
https://github.com/AxioDL/zeus.git
synced 2025-07-15 17:45:56 +00:00
Add identity transform constant
This commit is contained in:
parent
7df9f9b7ec
commit
4352f0d4a9
@ -35,7 +35,9 @@ public:
|
||||
CTransform(const CVector3f& c0, const CVector3f& c1, const CVector3f& c2, const CVector3f& c3)
|
||||
: basis(c0, c1, c2), origin(c3) {}
|
||||
|
||||
static CTransform Identity() { return CTransform(CMatrix3f::skIdentityMatrix3f); }
|
||||
static const CTransform skIdentityTransform;
|
||||
|
||||
static const CTransform& Identity() { return skIdentityTransform; }
|
||||
|
||||
bool operator==(const CTransform& other) const { return origin == other.origin && basis == other.basis; }
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
#include "zeus/CTransform.hpp"
|
||||
|
||||
namespace zeus {
|
||||
const CTransform CTransform::skIdentityTransform;
|
||||
|
||||
CTransform CTransformFromEditorEuler(const CVector3f& eulerVec) {
|
||||
CTransform result;
|
||||
double ti, tj, th, ci, cj, ch, si, sj, sh, cc, cs, sc, ss;
|
||||
|
Loading…
x
Reference in New Issue
Block a user