D3DXVEC2CCW function

xiaoxiao2021-03-06  102

D3DXVEC2CCW function

Returns the Z component of two 2-D vector fork.

definition:

FLOAT D3DXVEC2CCW (

Const d3dxvector2 * pv1,

Const d3dxvector2 * pv2

);

parameter:

PV1

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

PV2

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

return value:

The z component of two 2-D vector forks.

Description:

This function returns the z component result by calculating two vectors of two vectors. Use the following formula: ((x1, y1, 0) fork (X2, Y2, 0)). The results are calculated as follows:

PV1-> x * pv2-> y - pv1-> y * pv2-> x

If the z component result is positive, the vector V2 direction is to rotate in the vector V1 counterclockwise. This result is very useful for cropping.

Function information:

HEADER

D3DX9Math.h

Import Library

D3DX9.LIB

Minimum operation systems

WINDOWS 98

related functions:

D3DXVEC2DOT

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

New Post(0)