Click to Rate and Give Feedback
MSDN
MSDN Library
DirectX SDK
Namespaces
Classes
Geometry
Methods
 Geometry.DegreeToRadian Method

  Switch on low bandwidth view
Language: Visual BasicC#C++JScript(Show All)
Geometry.DegreeToRadian(Single) Method (Microsoft.DirectX.Direct3D)

Converts degrees to radians.

Definition

Visual Basic Public Shared Function DegreeToRadian( _
    ByVal degree As Single _
) As Single
C# public static float DegreeToRadian(
    float degree
);
C++ public:
static float DegreeToRadian(
    float degree
);
JScript public static function DegreeToRadian(
    degree : float
) : float;

Parameters

degree System.Single
Value, in degrees, to convert to radians.

Return Value

System.Single
Converted value in radians.

Remarks

This method uses the following formula to compute radians:

degree * (3.141592654f/180.0f)
	    

See Also

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker