Geometry.DegreeToRadian Method |
Language: |
Converts degrees to radians.
Visual Basic Public Shared Function DegreeToRadian( _
ByVal degree As Single _
) As SingleC# public static float DegreeToRadian(
float degree
);C++ public:
static float DegreeToRadian(
float degree
);JScript public static function DegreeToRadian(
degree : float
) : float;
degree System.Single
Value, in degrees, to convert to radians.
System.Single
Converted value in radians.
This method uses the following formula to compute radians:
degree * (3.141592654f/180.0f)
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center