D3DXVEC3LENGTHSQ function

xiaoxiao2021-03-06  122

D3DXVEC3LENGTHSQ function

Returns the square of the length of the 3-D vector.

definition:

FLOAT D3DXVEC3LENGTHSQ (

Const D3DXVector3 * PV

);

parameter:

PV

[in] Point the source vector of the D3DXVECTOR3 structure.

return value:

Vector length square.

Function information:

HEADER

D3DX9Math.h

Import Library

D3DX9.LIB

Minimum operation systems

WINDOWS 98

Function related:

D3DXVEC3LENGTH

D3DXVEC3lerp function

Operate the linear interpolation of two 3-D vector.

definition:

D3DXVECTOR3 * D3DXVEC3LERP

D3DXVECTOR3 * Pout,

Const d3dxvector3 * pv1,

Const d3dxvector3 * pv2,

Float S

);

parameter:

pout

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

PV1

[in] Point the source vector of the D3DXVECTOR3 structure.

PV2

[in] Point the source vector of the D3DXVECTOR3 structure.

s

[in] Two vector interpolation parameters.

return value:

Point linear interpolation results of the D3DxVector3 structure.

Description:

This function is linearly interpolated with the following formula: V1 S (V2-V1).

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

Function information:

HEADER

D3DX9Math.h

Import Library

D3DX9.LIB

Minimum operation systems

WINDOWS 98

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

New Post(0)