Platform SDK: DirectX

D3DXToDegree

The D3DXToDegree macro converts radians into degrees.

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

Parameters

radian
The value, in radians, that you want to convert to degrees.

Return Values

The macro returns the radian value in degrees.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Version: Requires DirectX 7.0.
  Header: Declared in d3dxmath.h.

See Also

D3DXToRadian