Public メソッド

クラス mw::nar::Projection_cl

透視射影変換行列を扱うクラスです。 [詳細]

#include <narProjection.h>

すべてのメンバ一覧

Public メソッド

 Projection_cl (f32 w, f32 h, f32 near, f32 far, f32 aov=66.0)
void GetMTX44 (nn::math::MTX44 &r_Mtx) const
 透視射影用の行列を取得します
void GetTrimmed (nn::math::MTX44 &r_Mtx, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f, f32 aov=66.f) const
 トリミングした射影行列を返します
void Set (f32 w, f32 h, f32 near, f32 far, f32 aov=66.0)
 射影行列を設定します。

説明

透視射影変換行列を扱うクラスです。


コンストラクタとデストラクタ

mw::nar::Projection_cl::Projection_cl ( f32  w,
f32  h,
f32  near,
f32  far,
f32  aov = 66.0 
) [inline]
引数:
w 画像の幅
h 画像の高さ
near near平面までの距離
far far平面までの距離
aov 対角画角(degrees)

関数

void mw::nar::Projection_cl::GetTrimmed ( nn::math::MTX44 &  r_Mtx,
f32  l,
f32  r,
f32  b,
f32  t,
f32  n,
f32  f,
f32  aov = 66.f 
) const

トリミングした射影行列を返します

引数:
[out] r_Mtx 
[in] l,r,b,t トリミングしない視錐体の、x,y座標の範囲を[-1,1]とした際の、トリミング位置を指定します。
n nearクリッピング面までの距離
f farクリッピング面までの距離
aov Angle of View(degree)
void mw::nar::Projection_cl::Set ( f32  w,
f32  h,
f32  near,
f32  far,
f32  aov = 66.0 
)

射影行列を設定します。

引数:
w 画像の幅
h 画像の高さ
near near平面までの距離
far far平面までの距離
aov 対角画角(degrees)

このクラスの説明は次のファイルから生成されました: