DTOR()
Convert degree to radiant
Syntax
DTOR( nDegree ) -> nRadiant
Arguments
<nDegree> the size of that angle in degree
Returns
<nRadiant> the size of an angle in radiant
Description
The function DTOR() can be used to convert sizes of angles given in degrees to radiant (as expected by sin, cos or tan functions).
Examples
? dtor( 180 ) // --> PI() ? dtor( 60 ) // --> PI() / 3
Tests
dtor( 0.0 ) == 0.0 dtor( 180.0 ) == PI()
Compliance
DTOR() is compatible with CT3’s DTOR().
Platforms
All
Files
Source is trig.c, library is libct.
Seealso
SIN(), COS(), TAN(), COT(), ASIN(), ACOS(), ATAN(), ATN2(), SINH(), COSH(), TANH(), RTOD(), PI()
Pingback: Harbour All Functions – D | Viva Clipper !
Pingback: Harbour Math Functions | Viva Clipper !