Kiwano Engine v1.3.x
kiwano::math::Matrix3x2T< _Ty > 模板结构体 参考

Public 类型

using ValueType = _Ty
 
using Vec2Type = Vec2T< ValueType >
 
using RectType = RectT< ValueType >
 

Public 成员函数

 Matrix3x2T (ValueType _11, ValueType _12, ValueType _21, ValueType _22, ValueType _31, ValueType _32)
 
 Matrix3x2T (const ValueType *p)
 
 Matrix3x2T (const Matrix3x2T &other)
 
KGE_SUPPRESS_WARNING_PUSH KGE_SUPPRESS_WARNING (26495) template< typename _MTy > Matrix3x2T(const _MTy &other)
 
KGE_SUPPRESS_WARNING_POP ValueType operator[] (uint32_t index) const
 
ValueType & operator[] (uint32_t index)
 
Matrix3x2Toperator= (const Matrix3x2T &other)
 
template<typename _Lty , typename _Rty >
Matrix3x2Toperator= (const MatrixMultiply< ValueType, _Lty, _Rty > &other)
 
Matrix3x2Toperator*= (const Matrix3x2T &other)
 
void Identity ()
 
bool IsIdentity () const
 
Matrix3x2T Invert () const
 
bool IsInvertible () const
 
ValueType Determinant () const
 
Vec2Type Transform (const Vec2Type &v) const
 
RectType Transform (const RectType &rect) const
 
void Translate (const Vec2Type &v)
 

静态 Public 成员函数

static Matrix3x2T Translation (const Vec2Type &v)
 
static Matrix3x2T Scaling (const Vec2Type &v)
 
static Matrix3x2T Scaling (const Vec2Type &v, const Vec2Type &center)
 
static Matrix3x2T Rotation (ValueType angle)
 
static Matrix3x2T Rotation (ValueType angle, const Vec2Type &center)
 
static Matrix3x2T SRT (const Vec2Type &trans, const Vec2Type &scale, ValueType angle)
 
static Matrix3x2T Skewing (const Vec2Type &angle)
 
static Matrix3x2T Skewing (const Vec2Type &angle, const Vec2Type &center)
 

Public 属性

union {
   struct {
      _Ty   m [6]
 
   } 
 
   struct {
      _Ty   _11
 
      _Ty   _12
 
      _Ty   _21
 
      _Ty   _22
 
      _Ty   _31
 
      _Ty   _32
 
   } 
 
};