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 */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
説明
度で表された値をラジアンに変換して返します。
DegToRad を使用すると、度で表された角度を、ラジアンで表された値に変換できます。変換式は以下のとおりです。
ラジアン = 度 * π / 180