Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

Posted on 2000-04-14
Medium Priority
630 Views
I need to know what they do and what needs to be put in it.
0
Question by:SBuntin
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 2

LVL 7

Expert Comment

ID: 2717447
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

Accepted Solution

ID: 2717449
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

LVL 7

Expert Comment

ID: 2717477
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

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
###### Suggested Courses
Course of the Month9 days, 3 hours left to enroll