DirectX Graphics ·¹ÆÛ·±½º Direct3D extension (D3DX) C/C++ ·¹ÆÛ·±½º ÇÔ¼ö »ê¼ú ÇÔ¼ö D3DXMatrixPerspectiveFovRH [¸ñÂ÷¿¶÷] [ÁÖ¼Òº¹»ç] [½½·Ôºñ¿ì±â]
|
| Microsoft DirectX 9.0 |
½Ã¾ß¿¡ ±Ù°ÅÇØ, ¿À¸¥¼Õ ÁÂÇ¥°è ÆÛ½ºÆåƼºê Åõ¿µ Çà·ÄÀ» »ý¼º ÇÑ´Ù.
±¸¹®
D3DXMATRIX *D3DXMatrixPerspectiveFovRH(
D3DXMATRIX *pOut, FLOAT fovY, FLOAT Aspect, FLOAT zn, FLOAT zf );
ÆÄ¶ó¹ÌÅÍ
- pOut
- [in, out] ¿¬»ê °á°úÀÎ D3DXMATRIX ±¸Á¶Ã¼ÀÇ Æ÷ÀÎÅÍ.
- fovY
- [in] y ¹æÇâ¿¡ÀÇ ½Ã¾ß (¶óµð¾È ´ÜÀ§).
- Aspect
- [in] ¾î½ºÆåÆ®ºñ(°¡·Î¼¼·Î ºñÀ²). ºä °ø°£ÀÇ ³ôÀ̸¦ ÆøÀ¸·Î ³ª´°¼À ÇÑ °ªÀ¸·Î Á¤ÀǵȴÙ.
- zn
- [in] °¡±î¿î ºä Æò¸éÀÇ Z °ª.
- zf
- [in] ¸Õ ºä Æò¸éÀÇ Z °ª.
¹Ýȯ°ª
¿À¸¥¼Õ ÁÂÇ¥°è ÆÛ½ºÆåƼºê Åõ¿µ Çà·ÄÀÎ D3DXMATRIX ±¸Á¶Ã¼ÀÇ Æ÷ÀÎÅÍ.
ÁÖÀÇ
ÀÌ ÇÔ¼öÀÇ ¹Ýȯ°ªÀº,pOut ÆÄ¶ó¹ÌÅÍÀÇ ¹Ýȯ°ª°ú °°´Ù. µû¶ó¼,D3DXMatrixPerspectiveFovRH ÇÔ¼ö¸¦ ´Ù¸¥ ÇÔ¼öÀÇ Àμö·Î¼ »ç¿ëÇÒ ¼ö ÀÖ´Ù.
ÀÌ ÇÔ¼ö°¡ µ¹·ÁÁÖ´Â Çà·ÄÀº, ´ÙÀ½°ú °°ÀÌ °è»êÇÑ´Ù.
w 0 0 0 0 h 0 0 0 0 zf/(zn-zf) -1 0 0 zn*zf/(zn-zf) 0 where: h is the view space height. It is calculated from h = cot(fovY/2); w is the view space width. It is calculated from w = h / Aspect.
ÇÔ¼öÀÇ Á¤º¸
Çì´õ d3dx9math.h ÀÓÆ÷Æ® ¶óÀ̺귯¸® d3dx9.lib ÃÖÀúÇÑÀÇ operating system Windows 98
ÂüÁ¶
D3DXMatrixPerspectiveRH ,D3DXMatrixPerspectiveLH ,D3DXMatrixPerspectiveFovLH ,D3DXMatrixPerspectiveOffCenterRH ,D3DXMatrixPerspectiveOffCenterLH