DTOR()

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()

2 responses to “DTOR()

  1. Pingback: Harbour All Functions – D | Viva Clipper !

  2. Pingback: Harbour Math Functions | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.