Quote:

I'm having a little problem with my trigonometry. I can use it to find lengths, but how do I give it as a reciprocal so I can work out angles? I already searched the site for this.




For a reciprocal, just raise a value to a negative exponent:

some_var = pow(some_angle, -1);
another_var = pow(some_angle, -0.5);

The top one takes the reciprocal of the variable, some_angle and the bottom one takes the square root of some_angle then gives the reciprocal. If some_angle was 4, you'd get 0.25 in the top one and 0.5 in the bottom one. I don't know if this is what you're after.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials