D3DXToRadian

Note

The D3DX utility library is deprecated. We recommend that you use DirectXMath instead.

Converts degrees into radians.

#define D3DXToRadian(degree) ((degree) * (D3DX_PI / 180.0f))

Parameters

Parameter Description
degree
The value, in degrees, to convert to radians.

 

Return Value

The macro returns the degree value in radians.

Requirements

Requirement Value
Header
D3dx9math.h

See also

Macros

D3DXToDegree

D3DX_PI