Tino Fourie wrote:
For example, having a line drawn at a certain angle I need to look into Radiants (whatever it is called).
You are right and wrong at the same time. If you ignore quadrants (I think this is a correct name for what you called "radiants"), you will get loss of precision or NaN (not a number) if infinite values. But do you actually need to consider those quadrants yourself?
I also though I have to look at quadrants, before I realized that I would only needed that if I uses sine and cosine functions. But the function which already takes this issue into account already exists:
System.Math.Atan2
:
http://msdn.microsoft.com/en-us/library/system.math.atan2%28v=vs.110%29.aspx[
^].
Look at the notes to this function on the MSDN help page referenced above; and you will see how the quadrants are internally used.
—SA