D3DXMAMATRIXPERSPECTIVEFOVRH function

xiaoxiao2021-03-06  75

D3DXMAMATRIXPERSPECTIVEFOVRH function

Create a perspective projection matrix of a right hand coordinate system.

definition:

D3DXMAMATRIX * WINAPI D3DXMATRIXPERSPECTIVEFOVRH (

D3DXMAMATRIX * POUT,

Float fovy,

Float aspect,

Float Zn,

Float ZF

);

parameter:

pout

[IN, OUT] points to the operation result matrix of the D3DXMatrix structure.

FOVY

[in] The angle (radians) of the Y-axis direction is observed, which is to observe the range angle.

Aspect

[in] aspect ratio, divided by the width of the viewing space.

Zn

Near cutting of cutting surface Z value.

ZF

Tough cut surface position z value.

return value:

Perspective of the right hand coordinate system in the D3DXMatrix structure.

Description:

The function return value is the same as the POUT parameter. This allows functions D3DXMAMATRixPERSPECTIVEFOVRH to use parameters of other functions.

Use the following method to calculate the right hand coordinate system perspective projection matrix:

Xscale 0 0 0 0

0 yscale 0 0

0 0 ZF / (Zn-ZF) -1

0 0 Zn * ZF / (Zn-ZF) 0

among them:

YSCALE = COT (FOVY / 2)

Xscale = aspect ratio * Yscale

Function information:

HEADER

D3DX9Math.h

Import Library

D3DX9.LIB

Minimum operation systems

WINDOWS 98

related functions:

D3DXMAMATRIXPERSPECTIVELH, D3DXMATRIXPERSPECTIVELH, D3DXMATRIXPERSPECTIVLH, D3DXMATRIXPERSPECTIVEFFCENTERRH, D3DXMATRIXPERSPECTIVEOFFCENTERLH

转载请注明原文地址:https://www.9cbs.com/read-108658.html

New Post(0)