?/TD>
Microsoft DirectX 9.0

D3DXToRadian Macro


Converts degrees into radians.

Syntax

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

Parameters

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

Return Value

The macro returns the degree value in radians.



Remarks

The constant D3DX_PI is declared with the following define.

#define D3DX_PI    ((FLOAT)  3.141592654f)

Macro Information

Headerd3dx9math.h
Minimum operating systems Windows 98

See Also

D3DXToDegree


© 2002 Microsoft Corporation. All rights reserved.