ゲームグラフィックス特論
読み取り中…
検索中…
一致する文字列を見つけられません
gg::GgMatrix クラス

#include <gg.h>

gg::GgMatrix の継承関係図
gg::GgMatrix 連携図

公開メンバ関数

 GgMatrix ()=default
constexpr GgMatrix (GLfloat m00, GLfloat m01, GLfloat m02, GLfloat m03, GLfloat m10, GLfloat m11, GLfloat m12, GLfloat m13, GLfloat m20, GLfloat m21, GLfloat m22, GLfloat m23, GLfloat m30, GLfloat m31, GLfloat m32, GLfloat m33)
constexpr GgMatrix (const GLfloat *a)
constexpr GgMatrix (GLfloat c)
 GgMatrix (const GgMatrix &m)=default
 GgMatrix (GgMatrix &&m)=default
 ~GgMatrix ()=default
GgMatrixoperator= (const GgMatrix &m)=default
GgMatrixoperator= (GgMatrix &&m)=default
GgMatrixoperator= (const GLfloat *a)
GgMatrix operator+ (const GLfloat *a) const
GgMatrix operator+ (const GgMatrix &m) const
GgMatrixoperator+= (const GLfloat *a)
GgMatrixoperator+= (const GgMatrix &m)
GgMatrix operator- (const GLfloat *a) const
GgMatrix operator- (const GgMatrix &m) const
GgMatrixoperator-= (const GLfloat *a)
GgMatrixoperator-= (const GgMatrix &m)
GgMatrix operator* (const GLfloat *a) const
GgMatrix operator* (const GgMatrix &m) const
GgMatrixoperator*= (const GLfloat *a)
GgMatrixoperator*= (const GgMatrix &m)
GgMatrix operator/ (const GLfloat *a) const
GgMatrix operator/ (const GgMatrix &m) const
GgMatrixoperator/= (const GLfloat *a)
GgMatrixoperator/= (const GgMatrix &m)
GgMatrixloadIdentity ()
GgMatrixloadTranslate (GLfloat x, GLfloat y, GLfloat z, GLfloat w=1.0f)
GgMatrixloadTranslate (const GLfloat *t)
GgMatrixloadTranslate (const GgVector &t)
GgMatrixloadScale (GLfloat x, GLfloat y, GLfloat z, GLfloat w=1.0f)
GgMatrixloadScale (const GLfloat *s)
GgMatrixloadScale (const GgVector &s)
GgMatrixloadRotateX (GLfloat a)
GgMatrixloadRotateY (GLfloat a)
GgMatrixloadRotateZ (GLfloat a)
GgMatrixloadRotate (GLfloat x, GLfloat y, GLfloat z, GLfloat a)
GgMatrixloadRotate (const GLfloat *r, GLfloat a)
GgMatrixloadRotate (const GgVector &r, GLfloat a)
GgMatrixloadRotate (const GLfloat *r)
GgMatrixloadRotate (const GgVector &r)
GgMatrixloadLookat (GLfloat ex, GLfloat ey, GLfloat ez, GLfloat tx, GLfloat ty, GLfloat tz, GLfloat ux, GLfloat uy, GLfloat uz)
GgMatrixloadLookat (const GLfloat *e, const GLfloat *t, const GLfloat *u)
GgMatrixloadLookat (const GgVector &e, const GgVector &t, const GgVector &u)
GgMatrixloadOrthogonal (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
GgMatrixloadFrustum (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
GgMatrixloadPerspective (GLfloat fovy, GLfloat aspect, GLfloat zNear, GLfloat zFar)
GgMatrixloadTranspose (const GLfloat *a)
GgMatrixloadTranspose (const GgMatrix &m)
GgMatrixloadInvert (const GLfloat *a)
GgMatrixloadInvert (const GgMatrix &m)
GgMatrixloadNormal (const GLfloat *a)
GgMatrixloadNormal (const GgMatrix &m)
GgMatrix translate (GLfloat x, GLfloat y, GLfloat z, GLfloat w=1.0f) const
GgMatrix translate (const GLfloat *t) const
GgMatrix translate (const GgVector &t) const
GgMatrix scale (GLfloat x, GLfloat y, GLfloat z, GLfloat w=1.0f) const
GgMatrix scale (const GLfloat *s) const
GgMatrix scale (const GgVector &s) const
GgMatrix rotateX (GLfloat a) const
GgMatrix rotateY (GLfloat a) const
GgMatrix rotateZ (GLfloat a) const
GgMatrix rotate (GLfloat x, GLfloat y, GLfloat z, GLfloat a) const
GgMatrix rotate (const GLfloat *r, GLfloat a) const
GgMatrix rotate (const GgVector &r, GLfloat a) const
GgMatrix rotate (const GLfloat *r) const
GgMatrix rotate (const GgVector &r) const
GgMatrix lookat (GLfloat ex, GLfloat ey, GLfloat ez, GLfloat tx, GLfloat ty, GLfloat tz, GLfloat ux, GLfloat uy, GLfloat uz) const
GgMatrix lookat (const GLfloat *e, const GLfloat *t, const GLfloat *u) const
GgMatrix lookat (const GgVector &e, const GgVector &t, const GgVector &u) const
GgMatrix orthogonal (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar) const
GgMatrix frustum (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar) const
GgMatrix perspective (GLfloat fovy, GLfloat aspect, GLfloat zNear, GLfloat zFar) const
GgMatrix transpose () const
GgMatrix invert () const
GgMatrix normal () const
void projection (GLfloat *c, const GLfloat *v) const
void projection (GLfloat *c, const GgVector &v) const
void projection (GgVector &c, const GLfloat *v) const
void projection (GgVector &c, const GgVector &v) const
GgVector operator* (const GgVector &v) const
const GLfloat * get () const
void get (GLfloat *a) const

詳解

変換行列.

gg.h2157 行目に定義があります。

構築子と解体子

◆ GgMatrix() [1/6]

gg::GgMatrix::GgMatrix ( )
default

コンストラクタ.

◆ GgMatrix() [2/6]

gg::GgMatrix::GgMatrix ( GLfloat m00,
GLfloat m01,
GLfloat m02,
GLfloat m03,
GLfloat m10,
GLfloat m11,
GLfloat m12,
GLfloat m13,
GLfloat m20,
GLfloat m21,
GLfloat m22,
GLfloat m23,
GLfloat m30,
GLfloat m31,
GLfloat m32,
GLfloat m33 )
inlineconstexpr

コンストラクタ.

引数
m00GLfloat 型の値.
m01GLfloat 型の値.
m02GLfloat 型の値.
m03GLfloat 型の値.
m10GLfloat 型の値.
m11GLfloat 型の値.
m12GLfloat 型の値.
m13GLfloat 型の値.
m20GLfloat 型の値.
m21GLfloat 型の値.
m22GLfloat 型の値.
m23GLfloat 型の値.
m30GLfloat 型の値.
m31GLfloat 型の値.
m32GLfloat 型の値.
m33GLfloat 型の値.

gg.h2192 行目に定義があります。

◆ GgMatrix() [3/6]

gg::GgMatrix::GgMatrix ( const GLfloat * a)
inlineconstexpr

コンストラクタ.

引数
aGLfloat 型の 16 要素の配列変数.

gg.h2207 行目に定義があります。

呼び出し関係図:

◆ GgMatrix() [4/6]

gg::GgMatrix::GgMatrix ( GLfloat c)
inlineconstexpr

コンストラクタ.

引数
cGLfloat 型の値.

gg.h2217 行目に定義があります。

呼び出し関係図:

◆ GgMatrix() [5/6]

gg::GgMatrix::GgMatrix ( const GgMatrix & m)
default

コピーコンストラクタ.

引数
mコピー元の変換行列.
呼び出し関係図:

◆ GgMatrix() [6/6]

gg::GgMatrix::GgMatrix ( GgMatrix && m)
default

ムーブコンストラクタ.

引数
mムーブ元の変換行列.
呼び出し関係図:

◆ ~GgMatrix()

gg::GgMatrix::~GgMatrix ( )
default

デストラクタ.

関数詳解

◆ frustum()

GgMatrix gg::GgMatrix::frustum ( GLfloat left,
GLfloat right,
GLfloat bottom,
GLfloat top,
GLfloat zNear,
GLfloat zFar ) const
inline

透視投影変換を乗じた結果を返す.

引数
leftウィンドウの左端の位置.
rightウィンドウの右端の位置.
bottomウィンドウの下端の位置.
topウィンドウの上端の位置.
zNear視点から前方面までの位置.
zFar視点から後方面までの位置.
戻り値
透視投影変換行列を乗じた変換行列.

gg.h3000 行目に定義があります。

呼び出し関係図:

◆ get() [1/2]

const GLfloat * gg::GgMatrix::get ( ) const
inline

変換行列を取り出す.

戻り値
変換行列を格納した GLfloat 型の 16 要素の配列変数.

gg.h3123 行目に定義があります。

被呼び出し関係図:

◆ get() [2/2]

void gg::GgMatrix::get ( GLfloat * a) const
inline

変換行列を取り出す.

引数
a変換行列を格納する GLfloat 型の 16 要素の配列変数.

gg.h3133 行目に定義があります。

◆ invert()

GgMatrix gg::GgMatrix::invert ( ) const
inline

逆行列を返す.

戻り値
逆行列.

gg.h3044 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ loadFrustum()

gg::GgMatrix & gg::GgMatrix::loadFrustum ( GLfloat left,
GLfloat right,
GLfloat bottom,
GLfloat top,
GLfloat zNear,
GLfloat zFar )

透視投影変換行列を格納する.

引数
leftウィンドウの左端の位置.
rightウィンドウの右端の位置.
bottomウィンドウの下端の位置.
topウィンドウの上端の位置.
zNear視点から前方面までの位置.
zFar視点から後方面までの位置.
戻り値
設定した透視投影変換行列.

gg.cpp3123 行目に定義があります。

被呼び出し関係図:

◆ loadIdentity()

gg::GgMatrix & gg::GgMatrix::loadIdentity ( )

単位行列を格納する.

gg.cpp2734 行目に定義があります。

被呼び出し関係図:

◆ loadInvert() [1/2]

GgMatrix & gg::GgMatrix::loadInvert ( const GgMatrix & m)
inline

逆行列を格納する.

引数
mGgMatrix 型の変換行列.
戻り値
設定した m の逆行列.

gg.h2723 行目に定義があります。

呼び出し関係図:

◆ loadInvert() [2/2]

gg::GgMatrix & gg::GgMatrix::loadInvert ( const GLfloat * a)

逆行列を格納する.

引数
aGLfloat 型の 16 要素の変換行列.
戻り値
設定した a の逆行列.

gg.cpp2909 行目に定義があります。

被呼び出し関係図:

◆ loadLookat() [1/3]

GgMatrix & gg::GgMatrix::loadLookat ( const GgVector & e,
const GgVector & t,
const GgVector & u )
inline

ビュー変換行列を格納する.

引数
e視点の位置の GgVector 型の変数.
t目標点の位置の GgVector 型の変数.
u上方向のベクトルの GgVector 型の変数.
戻り値
設定したビュー変換行列.

gg.h2643 行目に定義があります。

呼び出し関係図:

◆ loadLookat() [2/3]

GgMatrix & gg::GgMatrix::loadLookat ( const GLfloat * e,
const GLfloat * t,
const GLfloat * u )
inline

ビュー変換行列を格納する.

引数
e視点の位置の配列変数.
t目標点の位置の配列変数.
u上方向のベクトルの配列変数.
戻り値
設定したビュー変換行列.

gg.h2630 行目に定義があります。

呼び出し関係図:

◆ loadLookat() [3/3]

gg::GgMatrix & gg::GgMatrix::loadLookat ( GLfloat ex,
GLfloat ey,
GLfloat ez,
GLfloat tx,
GLfloat ty,
GLfloat tz,
GLfloat ux,
GLfloat uy,
GLfloat uz )

ビュー変換行列を格納する.

引数
ex視点の位置の x 座標値.
ey視点の位置の y 座標値.
ez視点の位置の z 座標値.
tx目標点の位置の x 座標値.
ty目標点の位置の y 座標値.
tz目標点の位置の z 座標値.
ux上方向のベクトルの x 成分.
uy上方向のベクトルの y 成分.
uz上方向のベクトルの z 成分.
戻り値
設定したビュー変換行列.

gg.cpp3023 行目に定義があります。

被呼び出し関係図:

◆ loadNormal() [1/2]

GgMatrix & gg::GgMatrix::loadNormal ( const GgMatrix & m)
inline

法線変換行列を格納する.

引数
mGgMatrix 型の変換行列.
戻り値
設定した m の法線変換行列.

gg.h2742 行目に定義があります。

呼び出し関係図:

◆ loadNormal() [2/2]

gg::GgMatrix & gg::GgMatrix::loadNormal ( const GLfloat * a)

法線変換行列を格納する.

引数
aGLfloat 型の 16 要素の変換行列.
戻り値
設定した a の法線変換行列.

gg.cpp2992 行目に定義があります。

被呼び出し関係図:

◆ loadOrthogonal()

gg::GgMatrix & gg::GgMatrix::loadOrthogonal ( GLfloat left,
GLfloat right,
GLfloat bottom,
GLfloat top,
GLfloat zNear,
GLfloat zFar )

直交投影変換行列を格納する.

引数
leftウィンドウの左端の位置.
rightウィンドウの右端の位置.
bottomウィンドウの下端の位置.
topウィンドウの上端の位置.
zNear視点から前方面までの位置.
zFar視点から後方面までの位置.
戻り値
設定した直交投影変換行列.

gg.cpp3082 行目に定義があります。

被呼び出し関係図:

◆ loadPerspective()

gg::GgMatrix & gg::GgMatrix::loadPerspective ( GLfloat fovy,
GLfloat aspect,
GLfloat zNear,
GLfloat zFar )

画角を指定して透視投影変換行列を格納する.

引数
fovyy 方向の画角.
aspect縦横比.
zNear視点から前方面までの位置.
zFar視点から後方面までの位置.
戻り値
設定した透視投影変換行列.

gg.cpp3164 行目に定義があります。

被呼び出し関係図:

◆ loadRotate() [1/5]

GgMatrix & gg::GgMatrix::loadRotate ( const GgVector & r)
inline

r 方向のベクトルを軸とする回転の変換行列を格納する.

引数
r回転軸の方向ベクトルと回転角を格納した GgVector 型のベクトル, 第 4 要素を回転角に用いる.
戻り値
設定した変換行列.

gg.h2599 行目に定義があります。

呼び出し関係図:

◆ loadRotate() [2/5]

GgMatrix & gg::GgMatrix::loadRotate ( const GgVector & r,
GLfloat a )
inline

r 方向のベクトルを軸とする回転の変換行列を格納する.

引数
r回転軸の方向ベクトルを格納した GgVector 型のベクトル, 第 4 要素は無視する.
a回転角.
戻り値
設定した変換行列.

gg.h2577 行目に定義があります。

呼び出し関係図:

◆ loadRotate() [3/5]

GgMatrix & gg::GgMatrix::loadRotate ( const GLfloat * r)
inline

r 方向のベクトルを軸とする回転の変換行列を格納する.

引数
r回転軸の方向ベクトルと回転角を格納した GLfloat 型の 4 要素の配列変数, 第 4 要素を回転角に用いる.
戻り値
設定した変換行列.

gg.h2588 行目に定義があります。

呼び出し関係図:

◆ loadRotate() [4/5]

GgMatrix & gg::GgMatrix::loadRotate ( const GLfloat * r,
GLfloat a )
inline

r 方向のベクトルを軸とする回転の変換行列を格納する.

引数
r回転軸の方向ベクトルを格納した GLfloat 型の 3 要素の配列変数 (x, y, z).
a回転角.
戻り値
設定した変換行列.

gg.h2565 行目に定義があります。

呼び出し関係図:

◆ loadRotate() [5/5]

gg::GgMatrix & gg::GgMatrix::loadRotate ( GLfloat x,
GLfloat y,
GLfloat z,
GLfloat a )

(x, y, z) 方向のベクトルを軸とする回転の変換行列を格納する.

引数
x回転軸の x 成分.
y回転軸の y 成分.
z回転軸の z 成分.
a回転角.
戻り値
設定した変換行列.

gg.cpp2839 行目に定義があります。

被呼び出し関係図:

◆ loadRotateX()

gg::GgMatrix & gg::GgMatrix::loadRotateX ( GLfloat a)

x 軸中心の回転の変換行列を格納する.

引数
a回転角.
戻り値
設定した変換行列.

gg.cpp2782 行目に定義があります。

被呼び出し関係図:

◆ loadRotateY()

gg::GgMatrix & gg::GgMatrix::loadRotateY ( GLfloat a)

y 軸中心の回転の変換行列を格納する.

引数
a回転角.
戻り値
設定した変換行列.

gg.cpp2801 行目に定義があります。

被呼び出し関係図:

◆ loadRotateZ()

gg::GgMatrix & gg::GgMatrix::loadRotateZ ( GLfloat a)

z 軸中心の回転の変換行列を格納する.

引数
a回転角.
戻り値
設定した変換行列.

gg.cpp2820 行目に定義があります。

被呼び出し関係図:

◆ loadScale() [1/3]

GgMatrix & gg::GgMatrix::loadScale ( const GgVector & s)
inline

拡大縮小の変換行列を格納する.

引数
s拡大率の GgVector 型の変数.
戻り値
設定した変換行列.

gg.h2518 行目に定義があります。

呼び出し関係図:

◆ loadScale() [2/3]

GgMatrix & gg::GgMatrix::loadScale ( const GLfloat * s)
inline

拡大縮小の変換行列を格納する.

引数
s拡大率の GLfloat 型の配列 (x, y, z).
戻り値
設定した変換行列.

gg.h2507 行目に定義があります。

呼び出し関係図:

◆ loadScale() [3/3]

gg::GgMatrix & gg::GgMatrix::loadScale ( GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w = 1.0f )

拡大縮小の変換行列を格納する.

引数
xx 方向の拡大率.
yy 方向の拡大率.
zz 方向の拡大率.
ww 拡大率のスケールファクタ (= 1.0f).
戻り値
設定した変換行列.

gg.cpp2766 行目に定義があります。

被呼び出し関係図:

◆ loadTranslate() [1/3]

GgMatrix & gg::GgMatrix::loadTranslate ( const GgVector & t)
inline

平行移動の変換行列を格納する.

引数
t移動量の GgVector 型の変数.
戻り値
設定した変換行列.

gg.h2485 行目に定義があります。

呼び出し関係図:

◆ loadTranslate() [2/3]

GgMatrix & gg::GgMatrix::loadTranslate ( const GLfloat * t)
inline

平行移動の変換行列を格納する.

引数
t移動量の GLfloat 型の配列 (x, y, z).
戻り値
設定した変換行列.

gg.h2474 行目に定義があります。

呼び出し関係図:

◆ loadTranslate() [3/3]

gg::GgMatrix & gg::GgMatrix::loadTranslate ( GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w = 1.0f )

平行移動の変換行列を格納する.

引数
xx 方向の移動量.
yy 方向の移動量.
zz 方向の移動量.
ww 移動量のスケールファクタ (= 1.0f).
戻り値
設定した変換行列.

gg.cpp2750 行目に定義があります。

被呼び出し関係図:

◆ loadTranspose() [1/2]

GgMatrix & gg::GgMatrix::loadTranspose ( const GgMatrix & m)
inline

転置行列を格納する.

引数
mGgMatrix 型の変換行列.
戻り値
設定した m の転置行列.

gg.h2704 行目に定義があります。

呼び出し関係図:

◆ loadTranspose() [2/2]

gg::GgMatrix & gg::GgMatrix::loadTranspose ( const GLfloat * a)

転置行列を格納する.

引数
aGLfloat 型の 16 要素の変換行列.
戻り値
設定した a の転置行列.

gg.cpp2881 行目に定義があります。

被呼び出し関係図:

◆ lookat() [1/3]

GgMatrix gg::GgMatrix::lookat ( const GgVector & e,
const GgVector & t,
const GgVector & u ) const
inline

ビュー変換を乗じた結果を返す.

引数
e視点の位置を格納した GgVector 型の変数.
t目標点の位置を格納した GgVector 型の変数.
u上方向のベクトルを格納した GgVector 型の変数.
戻り値
ビュー変換行列を乗じた変換行列.

gg.h2963 行目に定義があります。

呼び出し関係図:

◆ lookat() [2/3]

GgMatrix gg::GgMatrix::lookat ( const GLfloat * e,
const GLfloat * t,
const GLfloat * u ) const
inline

ビュー変換を乗じた結果を返す.

引数
e視点の位置を格納した GLfloat 型の 3 要素の配列変数.
t目標点の位置を格納した GLfloat 型の 3 要素の配列変数.
u上方向のベクトルを格納した GLfloat 型の 3 要素の配列変数.
戻り値
ビュー変換行列を乗じた変換行列.

gg.h2950 行目に定義があります。

呼び出し関係図:

◆ lookat() [3/3]

GgMatrix gg::GgMatrix::lookat ( GLfloat ex,
GLfloat ey,
GLfloat ez,
GLfloat tx,
GLfloat ty,
GLfloat tz,
GLfloat ux,
GLfloat uy,
GLfloat uz ) const
inline

ビュー変換を乗じた結果を返す.

引数
ex視点の位置の x 座標値.
ey視点の位置の y 座標値.
ez視点の位置の z 座標値.
tx目標点の位置の x 座標値.
ty目標点の位置の y 座標値.
tz目標点の位置の z 座標値.
ux上方向のベクトルの x 成分.
uy上方向のベクトルの y 成分.
uz上方向のベクトルの z 成分.
戻り値
ビュー変換行列を乗じた変換行列.

gg.h2932 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ normal()

GgMatrix gg::GgMatrix::normal ( ) const
inline

法線変換行列を返す.

戻り値
法線変換行列.

gg.h3055 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ operator*() [1/3]

GgMatrix gg::GgMatrix::operator* ( const GgMatrix & m) const
inline

変換行列に別の変換行列を乗算した値を返す.

引数
mGgMatrix 型の変換行列.
戻り値
変換行列に m を乗じた GgMatrix 型の変換行列.

gg.h2376 行目に定義があります。

呼び出し関係図:

◆ operator*() [2/3]

GgVector gg::GgMatrix::operator* ( const GgVector & v) const
inline

ベクトルに対して投影変換を行う.

引数
v元のベクトルの GgVector 型の変数.
戻り値
v 変換結果の GgVector 型のベクトル.

gg.h3111 行目に定義があります。

◆ operator*() [3/3]

GgMatrix gg::GgMatrix::operator* ( const GLfloat * a) const
inline

変換行列に配列に格納した変換行列を乗算した値を返す.

引数
a変換行列を格納した GLfloat 型の 16 要素の配列変数.
戻り値
変換行列に a を乗じた GgMatrix 型の変換行列.

gg.h2363 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ operator*=() [1/2]

GgMatrix & gg::GgMatrix::operator*= ( const GgMatrix & m)
inline

変換行列に別の変換行列を乗算した結果を格納する.

引数
mGgMatrix 型の変換行列.
戻り値
m を掛けた変換行列の参照.

gg.h2399 行目に定義があります。

呼び出し関係図:

◆ operator*=() [2/2]

GgMatrix & gg::GgMatrix::operator*= ( const GLfloat * a)
inline

変換行列に配列に格納した変換行列を乗算した結果を格納する.

引数
a変換行列を格納した GLfloat 型の 16 要素の配列変数.
戻り値
a を掛けた変換行列の参照.

gg.h2387 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ operator+() [1/2]

GgMatrix gg::GgMatrix::operator+ ( const GgMatrix & m) const
inline

変換行列に別の変換行列を加算した値を返す.

引数
mGgMatrix 型の変換行列.
戻り値
変換行列に m を加えた GgMatrix 型の変換行列.

gg.h2282 行目に定義があります。

呼び出し関係図:

◆ operator+() [2/2]

GgMatrix gg::GgMatrix::operator+ ( const GLfloat * a) const
inline

変換行列に配列に格納した変換行列を加算した値を返す.

引数
a変換行列を格納した GLfloat 型の 16 要素の配列変数.
戻り値
変換行列に a を加えた GgMatrix 型の変換行列.

gg.h2269 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ operator+=() [1/2]

GgMatrix & gg::GgMatrix::operator+= ( const GgMatrix & m)
inline

変換行列に別の変換行列を加算した結果を格納する.

引数
mGgMatrix 型の変換行列.
戻り値
m を加えた変換行列の参照.

gg.h2305 行目に定義があります。

呼び出し関係図:

◆ operator+=() [2/2]

GgMatrix & gg::GgMatrix::operator+= ( const GLfloat * a)
inline

変換行列に配列に格納した変換行列を加算した結果を格納する.

引数
a変換行列を格納した GLfloat 型の 16 要素の配列変数.
戻り値
a を加えた変換行列の参照.

gg.h2293 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ operator-() [1/2]

GgMatrix gg::GgMatrix::operator- ( const GgMatrix & m) const
inline

変換行列から別の変換行列を減算した値を返す.

引数
mGgMatrix 型の変換行列.
戻り値
変換行列から m を引いた GgMatrix 型の変換行列.

gg.h2329 行目に定義があります。

呼び出し関係図:

◆ operator-() [2/2]

GgMatrix gg::GgMatrix::operator- ( const GLfloat * a) const
inline

変換行列から配列に格納した変換行列を減算した結果を格納する.

引数
a変換行列を格納した GLfloat 型の 16 要素の配列変数.
戻り値
変換行列から a を引いた GgMatrix 型の変換行列.

gg.h2316 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ operator-=() [1/2]

GgMatrix & gg::GgMatrix::operator-= ( const GgMatrix & m)
inline

変換行列に別の変換行列を減算した結果を格納する.

引数
mGgMatrix 型の変換行列.
戻り値
m を引いた変換行列の参照.

gg.h2352 行目に定義があります。

呼び出し関係図:

◆ operator-=() [2/2]

GgMatrix & gg::GgMatrix::operator-= ( const GLfloat * a)
inline

変換行列に配列に格納した変換行列を減算した結果を格納する.

引数
a変換行列を格納した GLfloat 型の 16 要素の配列変数.
戻り値
a を引いた変換行列の参照.

gg.h2340 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ operator/() [1/2]

GgMatrix gg::GgMatrix::operator/ ( const GgMatrix & m) const
inline

変換行列を変換行列で除算した値を返す.

引数
mGgMatrix 型の変換行列.
戻り値
変換行列を m で割った GgMatrix 型の変換行列.

gg.h2424 行目に定義があります。

呼び出し関係図:

◆ operator/() [2/2]

GgMatrix gg::GgMatrix::operator/ ( const GLfloat * a) const
inline

変換行列を配列に格納した変換行列で除算した値を返す.

引数
a変換行列を格納した GLfloat 型の 16 要素の配列変数.
戻り値
変換行列を a で割った GgMatrix 型の変換行列.

gg.h2410 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ operator/=() [1/2]

GgMatrix & gg::GgMatrix::operator/= ( const GgMatrix & m)
inline

変換行列を別の変換行列で除算した結果を格納する.

引数
mGgMatrix 型の変換行列.
戻り値
m で割った変換行列の参照.

gg.h2447 行目に定義があります。

呼び出し関係図:

◆ operator/=() [2/2]

GgMatrix & gg::GgMatrix::operator/= ( const GLfloat * a)
inline

変換行列を配列に格納した変換行列で除算した結果を格納する.

引数
a変換行列を格納した GLfloat 型の 16 要素の配列変数.
戻り値
a で割った変換行列の参照.

gg.h2435 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ operator=() [1/3]

GgMatrix & gg::GgMatrix::operator= ( const GgMatrix & m)
default

代入演算子.

呼び出し関係図:

◆ operator=() [2/3]

GgMatrix & gg::GgMatrix::operator= ( const GLfloat * a)
inline

配列変数の値を格納する.

引数
aGLfloat 型の 16 要素の配列変数.
戻り値
a を代入したこのオブジェクトの参照.

gg.h2257 行目に定義があります。

呼び出し関係図:

◆ operator=() [3/3]

GgMatrix & gg::GgMatrix::operator= ( GgMatrix && m)
default

ムーブ代入演算子.

呼び出し関係図:

◆ orthogonal()

GgMatrix gg::GgMatrix::orthogonal ( GLfloat left,
GLfloat right,
GLfloat bottom,
GLfloat top,
GLfloat zNear,
GLfloat zFar ) const
inline

直交投影変換を乗じた結果を返す.

引数
leftウィンドウの左端の位置.
rightウィンドウの右端の位置.
bottomウィンドウの下端の位置.
topウィンドウの上端の位置.
zNear視点から前方面までの位置.
zFar視点から後方面までの位置.
戻り値
直交投影変換行列を乗じた変換行列.

gg.h2979 行目に定義があります。

呼び出し関係図:

◆ perspective()

GgMatrix gg::GgMatrix::perspective ( GLfloat fovy,
GLfloat aspect,
GLfloat zNear,
GLfloat zFar ) const
inline

画角を指定して透視投影変換を乗じた結果を返す.

引数
fovyy 方向の画角.
aspect縦横比.
zNear視点から前方面までの位置.
zFar視点から後方面までの位置.
戻り値
透視投影変換行列を乗じた変換行列.

gg.h3019 行目に定義があります。

呼び出し関係図:

◆ projection() [1/4]

void gg::GgMatrix::projection ( GgVector & c,
const GgVector & v ) const
inline

ベクトルに対して投影変換を行う.

引数
c変換結果を格納する GgVector 型の変数.
v元のベクトルの GgVector 型の変数.

gg.h3100 行目に定義があります。

◆ projection() [2/4]

void gg::GgMatrix::projection ( GgVector & c,
const GLfloat * v ) const
inline

ベクトルに対して投影変換を行う.

引数
c変換結果を格納する GgVector 型の変数.
v元のベクトルの GLfloat 型の 4 要素の配列変数.

gg.h3089 行目に定義があります。

◆ projection() [3/4]

void gg::GgMatrix::projection ( GLfloat * c,
const GgVector & v ) const
inline

ベクトルに対して投影変換を行う.

引数
c変換結果を格納する GLfloat 型の 4 要素の配列変数.
v元のベクトルの GgVector 型の変数.

gg.h3078 行目に定義があります。

◆ projection() [4/4]

void gg::GgMatrix::projection ( GLfloat * c,
const GLfloat * v ) const
inline

ベクトルに対して投影変換を行う.

引数
c変換結果を格納する GLfloat 型の 4 要素の配列変数.
v元のベクトルの GLfloat 型の 4 要素の配列変数.

gg.h3067 行目に定義があります。

◆ rotate() [1/5]

GgMatrix gg::GgMatrix::rotate ( const GgVector & r) const
inline

r 方向のベクトルを軸とする回転の変換行列を乗じた結果を返す.

引数
r回転軸の方向ベクトルと回転角を格納した GgVector 型の変数).
戻り値
(r[0], r[1], r[2]) を軸にさらに r[3] 回転した変換行列.

gg.h2913 行目に定義があります。

呼び出し関係図:

◆ rotate() [2/5]

GgMatrix gg::GgMatrix::rotate ( const GgVector & r,
GLfloat a ) const
inline

r 方向のベクトルを軸とする回転変換を乗じた結果を返す.

引数
r回転軸の方向ベクトルを格納した GgVector 型の変数.
a回転角.
戻り値
(r[0], r[1], r[2]) を軸にさらに a 回転した変換行列.

gg.h2891 行目に定義があります。

呼び出し関係図:

◆ rotate() [3/5]

GgMatrix gg::GgMatrix::rotate ( const GLfloat * r) const
inline

r 方向のベクトルを軸とする回転の変換行列を乗じた結果を返す.

引数
r回転軸の方向ベクトルと回転角を格納した GLfloat 型の 4 要素の配列変数 (x, y, z, a).
戻り値
(r[0], r[1], r[2]) を軸にさらに r[3] 回転した変換行列.

gg.h2902 行目に定義があります。

呼び出し関係図:

◆ rotate() [4/5]

GgMatrix gg::GgMatrix::rotate ( const GLfloat * r,
GLfloat a ) const
inline

r 方向のベクトルを軸とする回転変換を乗じた結果を返す.

引数
r回転軸の方向ベクトルを格納した GLfloat 型の 3 要素の配列変数 (x, y, z).
a回転角.
戻り値
(r[0], r[1], r[2]) を軸にさらに a 回転した変換行列.

gg.h2879 行目に定義があります。

呼び出し関係図:

◆ rotate() [5/5]

GgMatrix gg::GgMatrix::rotate ( GLfloat x,
GLfloat y,
GLfloat z,
GLfloat a ) const
inline

(x, y, z) 方向のベクトルを軸とする回転変換を乗じた結果を返す.

引数
x回転軸の x 成分.
y回転軸の y 成分.
z回転軸の z 成分.
a回転角.
戻り値
(x, y, z) を軸にさらに a 回転した変換行列.

gg.h2866 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ rotateX()

GgMatrix gg::GgMatrix::rotateX ( GLfloat a) const
inline

x 軸中心の回転変換を乗じた結果を返す.

引数
a回転角.
戻り値
x 軸中心にさらに a 回転した変換行列.

gg.h2827 行目に定義があります。

呼び出し関係図:

◆ rotateY()

GgMatrix gg::GgMatrix::rotateY ( GLfloat a) const
inline

y 軸中心の回転変換を乗じた結果を返す.

引数
a回転角.
戻り値
y 軸中心にさらに a 回転した変換行列.

gg.h2839 行目に定義があります。

呼び出し関係図:

◆ rotateZ()

GgMatrix gg::GgMatrix::rotateZ ( GLfloat a) const
inline

z 軸中心の回転変換を乗じた結果を返す.

引数
a回転角.
戻り値
z 軸中心にさらに a 回転した変換行列.

gg.h2851 行目に定義があります。

呼び出し関係図:

◆ scale() [1/3]

GgMatrix gg::GgMatrix::scale ( const GgVector & s) const
inline

拡大縮小変換を乗じた結果を返す.

引数
s拡大率の GgVector 型の変数.
戻り値
拡大縮小した結果の変換行列.

gg.h2816 行目に定義があります。

呼び出し関係図:

◆ scale() [2/3]

GgMatrix gg::GgMatrix::scale ( const GLfloat * s) const
inline

拡大縮小変換を乗じた結果を返す.

引数
s拡大率の GLfloat 型の 3 要素の配列変数 (x, y, z).
戻り値
拡大縮小した結果の変換行列.

gg.h2805 行目に定義があります。

呼び出し関係図:

◆ scale() [3/3]

GgMatrix gg::GgMatrix::scale ( GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w = 1.0f ) const
inline

拡大縮小変換を乗じた結果を返す.

引数
xx 方向の拡大率.
yy 方向の拡大率.
zz 方向の拡大率.
ww 移動量のスケールファクタ (= 1.0f).
戻り値
拡大縮小した結果の変換行列.

gg.h2793 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ translate() [1/3]

GgMatrix gg::GgMatrix::translate ( const GgVector & t) const
inline

平行移動変換を乗じた結果を返す.

引数
t移動量の GgVector 型の変数.
戻り値
平行移動した結果の変換行列.

gg.h2779 行目に定義があります。

呼び出し関係図:

◆ translate() [2/3]

GgMatrix gg::GgMatrix::translate ( const GLfloat * t) const
inline

平行移動変換を乗じた結果を返す.

引数
t移動量の GLfloat 型の 3 要素の配列変数 (x, y, z).
戻り値
平行移動した結果の変換行列.

gg.h2768 行目に定義があります。

呼び出し関係図:

◆ translate() [3/3]

GgMatrix gg::GgMatrix::translate ( GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w = 1.0f ) const
inline

平行移動変換を乗じた結果を返す.

引数
xx 方向の移動量.
yy 方向の移動量.
zz 方向の移動量.
ww 移動量のスケールファクタ (= 1.0f).
戻り値
平行移動した結果の変換行列.

gg.h2756 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

◆ transpose()

GgMatrix gg::GgMatrix::transpose ( ) const
inline

転置行列を返す.

戻り値
転置行列.

gg.h3033 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

このクラス詳解は次のファイルから抽出されました: