mirror of
https://github.com/AxioDL/zeus.git
synced 2025-07-08 22:26:00 +00:00
Add identity builder for CTransform
This commit is contained in:
parent
cf0bae88ff
commit
698801a160
@ -22,6 +22,11 @@ public:
|
|||||||
: m_basis(mtx[0], mtx[1], mtx[2]), m_origin(mtx[0].vec[3], mtx[1].vec[3], mtx[2].vec[3]) {}
|
: m_basis(mtx[0], mtx[1], mtx[2]), m_origin(mtx[0].vec[3], mtx[1].vec[3], mtx[2].vec[3]) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static inline CTransform Identity()
|
||||||
|
{
|
||||||
|
return CTransform(CMatrix3f::skIdentityMatrix3f);
|
||||||
|
}
|
||||||
|
|
||||||
inline CTransform operator*(const CTransform& rhs) const
|
inline CTransform operator*(const CTransform& rhs) const
|
||||||
{return CTransform(m_basis * rhs.m_basis, m_origin + (m_basis * rhs.m_origin));}
|
{return CTransform(m_basis * rhs.m_basis, m_origin + (m_basis * rhs.m_origin));}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user