• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 655
  • Last Modified:

RadianToDegrees() and DegreesToRadian()

I need to know some info on RadianToDegrees() and DegreesToRadian().
I need to know what they do and what needs to be put in it.
0
SBuntin
Asked:
SBuntin
  • 2
1 Solution
 
KangaRooCommented:
I would expect that RadianToDegrees() takes as argument a floating point value (double or long double) representing an angle in radians and returns that angle expessed in degrees. DegreesToRadian() would take an angle expressed in degrees and return the angle expressed in radians. The two are related such that

   RadianToDegrees(DegreesToRadian(x)) == x % 2*PI

Radians to degrees can be calculated as:

   degrees = radians * 180 / PI;
0
 
HeadSoftCommented:
You didn't mention what library or OS those functions are from, but they appear pretty self-explanatory to me:

Radians measure a circle as 2 * PI units, whereas degrees measure it as 360 units.

RadianToDegrees(n) then would return (n * 180.0 / pi) and DegreesToRadian(n) would return (n * pi / 180.0)

0
 
KangaRooCommented:
If you don't know the library to which they belong you can't give an answer. That is why I posted a comment...
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now