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

I need to know what they do and what needs to be put in it.
0
SBuntin
• 2
1 Solution

Commented:
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

Radians to degrees can be calculated as:

degrees = radians * 180 / PI;
0

Commented:
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

Commented:
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

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