Solved

RadianToDegrees() and DegreesToRadian()

Posted on 2000-04-14
3
613 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
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

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

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

809 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