|
|
Re: Trigonometry
[Re: Xarthor]
#77616
06/14/06 18:43
06/14/06 18:43
|
Joined: Apr 2006
Posts: 265
vartan_s
OP
Member
|
OP
Member
Joined: Apr 2006
Posts: 265
|
Quote:
You mean you have the length of two sides of a triangle and now you want a certain angle in this triangle? (where one has 90°)
Please explain your problem more precisly.
Yes that's the problem. So do I use fatan or atan? Or is it different?
|
|
|
Re: Trigonometry
[Re: vartan_s]
#77617
06/14/06 19:47
06/14/06 19:47
|
Joined: Feb 2003
Posts: 6,818 Minot, North Dakota, USA
ulillillia
Senior Expert
|
Senior Expert
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
|
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
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|