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

#include <seadMatrix.h>

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

Public Member Functions

 Matrix33 ()
 Matrix33 (T a00, T a01, T a02, T a10, T a11, T a12, T a20, T a21, T a22)
 Matrix33 (const Mtx34 &mtx34)
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 setMul (const Mtx34 &a, const Self &b)
void setMul (const Self &a, const Mtx34 &b)
void setTranspose (const Self &n)
void transpose ()
void fromQuat (const Quat &q)
void makeR (const Vec3 &r)
void makeRIdx (u32 xr, u32 yr, u32 zr)
void makeRzxyIdx (u32 xr, u32 yr, u32 zr)
void makeS (const Vec3 &s)
void makeS (T x, T y, T z)
void makeSR (const Vec3 &s, const Vec3 &r)
void makeSRIdx (const Vec3 &s, const Vector3< u32 > &r)
void makeSRzxyIdx (const Vec3 &s, const Vector3< u32 > &r)
void toQuat (Quat &q) const
const Matrix33< f32 > zero (0, 0, 0, 0, 0, 0, 0, 0, 0)
const Matrix33< f32 > ident (1, 0, 0, 0, 1, 0, 0, 0, 1)
const Matrix33< f64 > zero (0, 0, 0, 0, 0, 0, 0, 0, 0)
const Matrix33< f64 > ident (1, 0, 0, 0, 1, 0, 0, 0, 1)

Static Public Attributes

static const Matrix33 zero
static const Matrix33 ident

Private Types

typedef Matrix33< T > Self
typedef Matrix34< T > Mtx34
typedef Quat< T > Quat
typedef Vector3< T > Vec3

Additional Inherited Members

Public Attributes inherited from sead::Policies< T >::Mtx33Base
union { 
   T   m [3][3] 
   T   a [9] 
}; 

Member Typedef Documentation

◆ Self

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

◆ Mtx34

template<typename T>
typedef Matrix34<T> sead::Matrix33< T >::Mtx34
private

◆ Quat

template<typename T>
typedef Quat<T> sead::Matrix33< T >::Quat
private

◆ Vec3

template<typename T>
typedef Vector3<T> sead::Matrix33< T >::Vec3
private

Constructor & Destructor Documentation

◆ Matrix33() [1/3]

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

◆ Matrix33() [2/3]

template<typename T>
sead::Matrix33< T >::Matrix33 ( T a00,
T a01,
T a02,
T a10,
T a11,
T a12,
T a20,
T a21,
T a22 )
inline

◆ Matrix33() [3/3]

template<typename T>
sead::Matrix33< T >::Matrix33 ( const Mtx34 & mtx34)
inline

Member Function Documentation

◆ operator()() [1/2]

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

◆ operator()() [2/2]

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

◆ operator=()

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

◆ makeIdentity()

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

◆ makeZero()

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

◆ setInverse()

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

◆ setInverseTranspose()

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

◆ setMul() [1/3]

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

◆ setMul() [2/3]

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

◆ setMul() [3/3]

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

◆ setTranspose()

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

◆ transpose()

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

◆ fromQuat()

template<typename T>
void sead::Matrix33< T >::fromQuat ( const Quat & q)
inline

◆ makeR()

template<typename T>
void sead::Matrix33< T >::makeR ( const Vec3 & r)
inline

◆ makeRIdx()

template<typename T>
void sead::Matrix33< T >::makeRIdx ( u32 xr,
u32 yr,
u32 zr )
inline

◆ makeRzxyIdx()

template<typename T>
void sead::Matrix33< T >::makeRzxyIdx ( u32 xr,
u32 yr,
u32 zr )
inline

◆ makeS() [1/2]

template<typename T>
void sead::Matrix33< T >::makeS ( const Vec3 & s)
inline

◆ makeS() [2/2]

template<typename T>
void sead::Matrix33< T >::makeS ( T x,
T y,
T z )
inline

◆ makeSR()

template<typename T>
void sead::Matrix33< T >::makeSR ( const Vec3 & s,
const Vec3 & r )
inline

◆ makeSRIdx()

template<typename T>
void sead::Matrix33< T >::makeSRIdx ( const Vec3 & s,
const Vector3< u32 > & r )
inline

◆ makeSRzxyIdx()

template<typename T>
void sead::Matrix33< T >::makeSRzxyIdx ( const Vec3 & s,
const Vector3< u32 > & r )
inline

◆ toQuat()

template<typename T>
void sead::Matrix33< T >::toQuat ( Quat & q) const
inline

◆ zero() [1/2]

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

◆ ident() [1/2]

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

◆ zero() [2/2]

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

◆ ident() [2/2]

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

Member Data Documentation

◆ zero

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

◆ ident

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