- Home /
How do I get the 'normal' Sinus?
Hi there :), I'm sorry, I think my problem is a little one but it just doesn't work since 2 hours... The Sinus of 90 degree is 1.
Mathf.Sin(90) //doesn't work Mathf.Sin(90) multiplied Mathf.Rad2Deg //doesn't work Mathf.Sin(90) multiplied Mathf.Rad2Deg) //nope :) Mathf.Sin(90) multiplied Mathf.Deg2Rad) //Yeeeh.... oh no: only for 90 degrees
so, since 2 hours I'm traying to get just the simple/normal sinus return (with stuff like Math.Pow(Mathf.Sin(),-1) and all kinds of combinations because I don't know what to do.....) Could somebody help me, please?
Answer by whydoidoit · Jul 20, 2012 at 04:09 PM
Mathf.Sin(90 * Mathf.Deg2Rad)
yes, but like I wrote in my question it only works from 0° to 90°. $$anonymous$$athf.Sin(180 * $$anonymous$$athf.Deg2Rad) for example doesn't work.
Err - it's fine! What values were you expecting?
0 = 0.000
10 = 0.174
20 = 0.342
30 = 0.500
40 = 0.643
50 = 0.766
60 = 0.866
70 = 0.940
80 = 0.985
90 = 1.000
100 = 0.985
110 = 0.940
120 = 0.866
130 = 0.766
140 = 0.643
150 = 0.500
160 = 0.342
170 = 0.174
180 = 0.000
190 = -0.174
200 = -0.342
210 = -0.500
220 = -0.643
230 = -0.766
240 = -0.866
250 = -0.940
260 = -0.985
270 = -1.000
280 = -0.985
290 = -0.940
300 = -0.866
310 = -0.766
320 = -0.643
330 = -0.500
340 = -0.342
350 = -0.174
ok, that's a cool answer :D so, right know I saw that there is an E-08 at the end... I just have to round it.... I'm, sorry _
Your answer
Follow this Question
Related Questions
radiusX and radiusY ? 1 Answer
How can I make water waves ? 1 Answer
place 8 objects around a target gameObject in a circle ( like a compass ) 3 Answers
What's wrong with this algorithm? 2 Answers
What's wrong with this type? 1 Answer