arsa  2.7
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Effekseer::Matrix43 Struct Reference

4x3行列 More...

#include <Effekseer.h>

Public Member Functions

void Indentity ()
 単位行列化を行う。 More...
 
void Scaling (float x, float y, float z)
 拡大行列化を行う。 More...
 
void RotationX (float angle)
 反時計周り方向のX軸回転行列化を行う。 More...
 
void RotationY (float angle)
 反時計周り方向のY軸回転行列化を行う。 More...
 
void RotationZ (float angle)
 反時計周り方向のZ軸回転行列化を行う。 More...
 
void RotationXYZ (float rx, float ry, float rz)
 反時計周り方向のXYZ軸回転行列化を行う。 More...
 
void RotationZXY (float rz, float rx, float ry)
 反時計周り方向のZXY軸回転行列化を行う。 More...
 
void RotationAxis (const Vector3D &axis, float angle)
 任意軸に対する反時計周り方向回転行列化を行う。 More...
 
void RotationAxis (const Vector3D &axis, float s, float c)
 任意軸に対する反時計周り方向回転行列化を行う。 More...
 
void Translation (float x, float y, float z)
 移動行列化を行う。 More...
 
void GetSRT (Vector3D &s, Matrix43 &r, Vector3D &t) const
 行列を、拡大、回転、移動の行列とベクトルに分解する。 More...
 
void GetScale (Vector3D &s) const
 行列から拡大ベクトルを取得する。 More...
 
void GetRotation (Matrix43 &r) const
 行列から回転行列を取得する。 More...
 
void GetTranslation (Vector3D &t) const
 行列から移動ベクトルを取得する。 More...
 
void SetSRT (const Vector3D &s, const Matrix43 &r, const Vector3D &t)
 行列の拡大、回転、移動を設定する。 More...
 
void ToMatrix44 (Matrix44 &dst)
 convert into matrix44 More...
 
bool IsValid () const
 check whether all values are not valid number(not nan, not inf) More...
 

Static Public Member Functions

static void Multiple (Matrix43 &out, const Matrix43 &in1, const Matrix43 &in2)
 行列同士の乗算を行う。 More...
 

Public Attributes

float Value [4][3]
 行列の値 More...
 

Detailed Description

4x3行列

Note
右手系(回転:反時計回り)
V[x,y,z,1] * M の形でベクトルとの乗算が可能である。
[0,0][0,1][0,2]
[1,0][1,1][1,2]
[2,0][2,1][2,2]
[3,0][3,1][3,2]

Definition at line 1130 of file Effekseer.h.

Member Function Documentation

◆ GetRotation()

void Effekseer::Matrix43::GetRotation ( Matrix43 r) const

行列から回転行列を取得する。

Parameters
s[out] 回転行列

◆ GetScale()

void Effekseer::Matrix43::GetScale ( Vector3D s) const

行列から拡大ベクトルを取得する。

Parameters
s[out] 拡大ベクトル

◆ GetSRT()

void Effekseer::Matrix43::GetSRT ( Vector3D s,
Matrix43 r,
Vector3D t 
) const

行列を、拡大、回転、移動の行列とベクトルに分解する。

Parameters
s[out] 拡大行列
r[out] 回転行列
t[out] 位置

◆ GetTranslation()

void Effekseer::Matrix43::GetTranslation ( Vector3D t) const

行列から移動ベクトルを取得する。

Parameters
t[out] 移動ベクトル

◆ Indentity()

void Effekseer::Matrix43::Indentity ( )

単位行列化を行う。

◆ IsValid()

bool Effekseer::Matrix43::IsValid ( ) const

check whether all values are not valid number(not nan, not inf)

◆ Multiple()

static void Effekseer::Matrix43::Multiple ( Matrix43 out,
const Matrix43 in1,
const Matrix43 in2 
)
static

行列同士の乗算を行う。

Parameters
out[out] 結果
in1[in] 乗算の左側
in2[in] 乗算の右側

◆ RotationAxis() [1/2]

void Effekseer::Matrix43::RotationAxis ( const Vector3D axis,
float  angle 
)

任意軸に対する反時計周り方向回転行列化を行う。

Parameters
axis[in] 回転軸
angle[in] 角度(ラジアン)

◆ RotationAxis() [2/2]

void Effekseer::Matrix43::RotationAxis ( const Vector3D axis,
float  s,
float  c 
)

任意軸に対する反時計周り方向回転行列化を行う。

Parameters
axis[in] 回転軸
s[in] サイン
c[in] コサイン

◆ RotationX()

void Effekseer::Matrix43::RotationX ( float  angle)

反時計周り方向のX軸回転行列化を行う。

Parameters
angle[in] 角度(ラジアン)

◆ RotationXYZ()

void Effekseer::Matrix43::RotationXYZ ( float  rx,
float  ry,
float  rz 
)

反時計周り方向のXYZ軸回転行列化を行う。

Parameters
rx[in] 角度(ラジアン)
ry[in] 角度(ラジアン)
rz[in] 角度(ラジアン)

◆ RotationY()

void Effekseer::Matrix43::RotationY ( float  angle)

反時計周り方向のY軸回転行列化を行う。

Parameters
angle[in] 角度(ラジアン)

◆ RotationZ()

void Effekseer::Matrix43::RotationZ ( float  angle)

反時計周り方向のZ軸回転行列化を行う。

Parameters
angle[in] 角度(ラジアン)

◆ RotationZXY()

void Effekseer::Matrix43::RotationZXY ( float  rz,
float  rx,
float  ry 
)

反時計周り方向のZXY軸回転行列化を行う。

Parameters
rz[in] 角度(ラジアン)
rx[in] 角度(ラジアン)
ry[in] 角度(ラジアン)

◆ Scaling()

void Effekseer::Matrix43::Scaling ( float  x,
float  y,
float  z 
)

拡大行列化を行う。

Parameters
x[in] X方向拡大率
y[in] Y方向拡大率
z[in] Z方向拡大率

◆ SetSRT()

void Effekseer::Matrix43::SetSRT ( const Vector3D s,
const Matrix43 r,
const Vector3D t 
)

行列の拡大、回転、移動を設定する。

Parameters
s[in] 拡大行列
r[in] 回転行列
t[in] 位置

◆ ToMatrix44()

void Effekseer::Matrix43::ToMatrix44 ( Matrix44 dst)

convert into matrix44

◆ Translation()

void Effekseer::Matrix43::Translation ( float  x,
float  y,
float  z 
)

移動行列化を行う。

Parameters
x[in] X方向移動
y[in] Y方向移動
z[in] Z方向移動

Member Data Documentation

◆ Value

float Effekseer::Matrix43::Value[4][3]

行列の値

Definition at line 1138 of file Effekseer.h.


The documentation for this struct was generated from the following file: