Absolutely Mind Blasting

10/29/2010 14:12 _DreadNought_#16
Quote:
Originally Posted by _tao4229_ View Post
10 dollars says nobody that has posted in this thread understands it
Looked to me its kinda like fractions.
Isnt it just doing some *'ing and some other math stuff to get the same number as inputted? I know its along those lines, it also has a limit before the result is done?
10/29/2010 16:57 DragonHeart#17
Quote:
Originally Posted by Korvacs View Post
This doesnt have very much to do with programming, you need to be good at maths to understand this.
True, tho, still got me lost.
10/29/2010 21:55 InfamousNoone#18
I realize that is it offtopic, but posting it here is the only place in the CO-community where math of this kind can be treated with importance.
You want me to make this relevant to CO? Gladly:
Code:
        static double f2(double y, double x, int klimit)
        {
            if (x > 0)
                return f(y / x, klimit);
            else if (y >= 0 && x < 0)
                return Math.PI + f(y / x, klimit);
            else if (y < 0 && x < 0)
                return (-Math.PI) + f(y / x, klimit);
            else if (y > 0 && x == 0)
                return Math.PI / 2;
            else if (y < 0 && x == 0)
                return (-Math.PI) / 2;
            return Double.NaN;
        }
Code:
        static int GetAngle(int X1, int Y1, int X2, int Y2)
        {
            return (int)Math.Round(f2(Y2 - Y1, X2 - X1, 5) * 180 / Math.PI);
        }
Used commonly to get the angle between two entities. You just didn't know (or better yet, you didn't have to know / understand) the math behind it but this calculation is likely used somewhere in your source, but the functions it depends on are likely being used from the .NET library instead of self-implemented. Knowing the angle is essential in calculating who gets it for the "wave" magic-type (named by TQ). Think about the poleaxe skill.
10/29/2010 22:13 InfamousNoone#19
I made it relevant to CO now, could you please explain the problem now? :rolleyes:
10/29/2010 22:56 Korvacs#20
Quote:
Originally Posted by .Kob View Post
He's just another human in our little planet.
But thats true, are the moderators scared?
Not scared, merely have respect, inf has never to my knowledge posted anything that goes against the rules here, nor posted anything that isnt relevant to the section he posted in.....as he has proven once again.
10/29/2010 23:05 Basser#21
I was not saying this was irrelevant, however I was pointing out the behaviour towards Infamous.
10/29/2010 23:29 FuriousFang#22
I understand it now. I just had to look up a lot of math class variables and what they do. This is a way of getting accuracy (as you said), I learned something similar in AP Statistics. Is this what our calculators use?
10/30/2010 11:09 tanelipe#23
Cleaned. Infamous, do you mind merging the actual CO part of the calculation to the first post?