DirectX SDK

D3DXToRadian

The D3DXToRadian macro converts degrees into radians.

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

Parameters

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

Return Values

The macro returns the degree value in radians.

Requirements

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

See Also

D3DXToDegree