Solved

RadianToDegrees() and DegreesToRadian()

Posted on 2000-04-14
3
609 Views
Last Modified: 2008-03-17
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
Comment
Question by:SBuntin
  • 2
3 Comments
 
LVL 7

Expert Comment

by:KangaRoo
Comment Utility
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
 

Accepted Solution

by:
HeadSoft earned 25 total points
Comment Utility
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

by:KangaRoo
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now