![]() |
Springhead
An open source physics engine for virtual reality, haptics and motion generation.
|
2x2行列クラス. [詳細]
#include <TinyMat.h>
Public 型 | |
typedef PTM::TMatrixDescCol < TMatrix2< T > , PTM::TMatrixRow< 2, 2, T > , 2, 2, 2, T > | desc |
typedef PTM::TMatrixBase < 2, 2, desc > | base_type |
Public メソッド | |
DEF_MATRIX_BASIC_MEMBER (TMatrix2) | |
基本的なメンバの定義 [詳細] | |
element_type & | item_impl (size_t i, size_t j) |
要素のアクセス | |
const element_type & | item_impl (size_t i, size_t j) const |
基底ベクトルへのアクセス | |
TVec2< element_type > & | Ex () |
const TVec2< element_type > & | Ex () const |
TVec2< element_type > & | Ey () |
const TVec2< element_type > & | Ey () const |
要素へのアクセス | |
const element_type & | ExX () const |
element_type & | ExX () |
const element_type & | ExY () const |
element_type & | ExY () |
const element_type & | EyX () const |
element_type & | EyX () |
const element_type & | EyY () const |
element_type & | EyY () |
演算 | |
element_type | angle () const |
回転行列の回転角を返す | |
Public 変数 | |
union { | |
element_type data [2][2] | |
struct { | |
element_type xx | |
element_type xy | |
element_type yx | |
element_type yy | |
} | |
}; | |
初期化と構築 | |
void | set_default () |
コンストラクタ | |
TMatrix2 (const TVec2< T > &exi, const TVec2< T > &eyi) | |
コンストラクタ(直接指定) | |
TMatrix2 (T m11, T m12, T m21, T m22) | |
static TMatrix2< T > | Zero () |
零行列 | |
static TMatrix2< T > | Unit () |
単位行列 | |
static TMatrix2< T > | Diag (element_type x, element_type y) |
対角行列 | |
static TMatrix2< T > | Rot (element_type rad) |
回転行列 回転角を指定 | |
template<typename BUFA > | |
static TMatrix2< T > | Rot (const PTM::TVectorBase< 2, BUFA > &a, char axis) |
x/y軸の向きを指定 | |
DEF_MATRIX_BASIC_MEMBER | ( | TMatrix2< T > | ) |