sead
Loading...
Searching...
No Matches
sead::Matrix22< T > Class Template Reference

#include <seadMatrix.h>

Inherits sead::Policies< T >::Mtx22Base.

Public Member Functions

 Matrix22 ()
 Matrix22 (T a00, T a01, T a10, T a11)
operator() (s32 i, s32 j) const
T & operator() (s32 i, s32 j)
Selfoperator= (const Self &n)
void makeIdentity ()
void makeZero ()
void setInverse (const Self &n)
void setInverseTranspose (const Self &n)
void setMul (const Self &a, const Self &b)
void setTranspose (const Self &n)
void transpose ()
void makeRIdx (u32 r)
const Matrix22< f32 > zero (0, 0, 0, 0)
const Matrix22< f32 > ident (1, 0, 0, 1)
const Matrix22< f64 > zero (0, 0, 0, 0)
const Matrix22< f64 > ident (1, 0, 0, 1)

Static Public Attributes

static const Matrix22 zero
static const Matrix22 ident

Private Types

typedef Matrix22< T > Self

Additional Inherited Members

Public Attributes inherited from sead::Policies< T >::Mtx22Base
union { 
   T   m [2][2] 
   T   a [4] 
}; 

Member Typedef Documentation

◆ Self

template<typename T>
typedef Matrix22<T> sead::Matrix22< T >::Self
private

Constructor & Destructor Documentation

◆ Matrix22() [1/2]

template<typename T>
sead::Matrix22< T >::Matrix22 ( )
inline

◆ Matrix22() [2/2]

template<typename T>
sead::Matrix22< T >::Matrix22 ( T a00,
T a01,
T a10,
T a11 )
inline

Member Function Documentation

◆ operator()() [1/2]

template<typename T>
T sead::Matrix22< T >::operator() ( s32 i,
s32 j ) const
inline

◆ operator()() [2/2]

template<typename T>
T & sead::Matrix22< T >::operator() ( s32 i,
s32 j )
inline

◆ operator=()

template<typename T>
Matrix22< T > & sead::Matrix22< T >::operator= ( const Self & n)
inline

◆ makeIdentity()

template<typename T>
void sead::Matrix22< T >::makeIdentity ( )
inline

◆ makeZero()

template<typename T>
void sead::Matrix22< T >::makeZero ( )
inline

◆ setInverse()

template<typename T>
void sead::Matrix22< T >::setInverse ( const Self & n)
inline

◆ setInverseTranspose()

template<typename T>
void sead::Matrix22< T >::setInverseTranspose ( const Self & n)
inline

◆ setMul()

template<typename T>
void sead::Matrix22< T >::setMul ( const Self & a,
const Self & b )
inline

◆ setTranspose()

template<typename T>
void sead::Matrix22< T >::setTranspose ( const Self & n)
inline

◆ transpose()

template<typename T>
void sead::Matrix22< T >::transpose ( )
inline

◆ makeRIdx()

template<typename T>
void sead::Matrix22< T >::makeRIdx ( u32 r)
inline

◆ zero() [1/2]

const Matrix22< f32 > sead::Matrix22< f32 >::zero ( 0 ,
0 ,
0 ,
0  )

◆ ident() [1/2]

const Matrix22< f32 > sead::Matrix22< f32 >::ident ( 1 ,
0 ,
0 ,
1  )

◆ zero() [2/2]

const Matrix22< f64 > sead::Matrix22< f64 >::zero ( 0 ,
0 ,
0 ,
0  )

◆ ident() [2/2]

const Matrix22< f64 > sead::Matrix22< f64 >::ident ( 1 ,
0 ,
0 ,
1  )

Member Data Documentation

◆ zero

template<typename T>
const Matrix22 sead::Matrix22< T >::zero
static

◆ ident

template<typename T>
const Matrix22 sead::Matrix22< T >::ident
static