# Talk:Angle

From Unify Community Wiki

I'm hoping that someone (maybe the original author) could explain to me why he had the following statment:

percentofpercent = Mathf.Abs(horizontal) + Mathf.Abs(vertical) - 1.0;

I'm a little rusty on my trig,geometry, and other maths from way back before college. Is this from a particular formula or did you do this kind of arbitrarily? I would like to use your script, or at least some ideas from it, but I'd rather know what certain statements mean before I just outright take them.

Thanks.