Microsoft DirectX 8.1 (C++)

D3DXToDegree

Converts radians into degrees.

D3DXToDegree( radian ) ((radian) * (180.0f / D3DX_PI))

Parameters

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

Return Values

The macro returns the radian value in degrees.

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

D3DXToRadian