System.Math.DegToRad
Delphi
function DegToRad(const Degrees: Single): Single; { Radians := Degrees * PI / 180 }
function DegToRad(const Degrees: Double): Double; { Radians := Degrees * PI / 180 }
function DegToRad(const Degrees: Extended): Extended; { Radians := Degrees * PI / 180 }
C++
extern DELPHI_PACKAGE float __fastcall DegToRad(const float Degrees)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
Description
Returns the value of a degree measurement expressed in radians.
Use DegToRad to convert angles expressed in degrees to the corresponding value in radians, where
radians = degrees(pi/180).