Microsoft DirectX 8.1 (C++)

D3DXToRadian

Converts degrees into radians.

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

Parameters

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

Return Values

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)

Requirements

  Header: Declared in D3dx8math.H.

See Also

D3DXToDegree