Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
Pages: 1
Okay so I tried brute forcing the problem, that didn't work, so I tried thinking at it, that obviously didn't work, so now it's time to make a topic on the forums.
If I have two sides of a right triangle, x and y, and the hypotenuse is always 1. is it possible to get a value from 0-1 out of that with some magical inverse trig functions? x=1 y=0 should spit out 0, x=0 y=1 should spit out .25, x=-1 y=0 should spit out .5, and x=0 y=-1 should spit out .75. I feel like this is really basic stuff as far as trig goes but eh.
tl;dr: how do I this?
"Sometimes failing a leap of faith is better than inching forward"
- ShinsukeIto
Offline
((arccos(x) + arcsin(y))/pi)/2
EDIT: and make sure it's in radians
Offline
Pages: 1
[ Started around 1739069180.4792 - Generated in 0.051 seconds, 10 queries executed - Memory usage: 1.36 MiB (Peak: 1.44 MiB) ]