Microsoft DirectX 9.0 SDK Update (October 2004)

Geometry.DegreeToRadian Method

Language:

Note: This documentation is preliminary and is subject to change.

Converts degrees to radians.

Definition

Visual Basic .NET Public Shared Function DegreeToRadian( _
    ByVal degree As Single _
) As Single
C# public static float DegreeToRadian(
    float degree
);
Managed C++ public: static float DegreeToRadian(
    float degree
);
JScript .NET 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


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center