Difference between revisions of "Talk:Simulating new functions"
no edit summary
imported>Maian |
imported>JustTim |
||
Line 187: | Line 187: | ||
The math for getAngle is definitely not correct. You mixed up cos and sin (cos = x/h; sin = y/h). I'm not sure why you're multiplying cos or sin with 180/PI since that's not the angle. In fact, you shouldn't even be using cos or sin when trying to get the arctangent. --[[User:Maian|Maian]] 00:56, 8 May 2006 (EDT) | The math for getAngle is definitely not correct. You mixed up cos and sin (cos = x/h; sin = y/h). I'm not sure why you're multiplying cos or sin with 180/PI since that's not the angle. In fact, you shouldn't even be using cos or sin when trying to get the arctangent. --[[User:Maian|Maian]] 00:56, 8 May 2006 (EDT) | ||
Oops, now i see why i've recieved some strange results. But the results aren't too far from what they should be. ^^ But i'd appreciate a corrected version very much. As said before my math skills are VERY limited and those functions are nothing but patchwork of stuff i found on the net, put together by trial and error instead of reasonable mathematics. :) --[[User:JustTim|JustTim]] 11:34, 8 May 2006 (EDT) |