Game Development Community

A little bit of Math

by Gennady · in Torque 3D Beginner · 09/27/2011 (4:23 am) · 5 replies

Sorry, for such stupid question, but I faced with few troubles in translations and have to ask.

The question is about mAtan() function. It has two arguments: rise and run. The problem is that I can't find a correct translation. Can somebody explain me or/and draw smth about these rise and run? And why isn't it possible to pass just a tangent of angle to the function?

Thanks!

About the author

Specialist of International center for professional training in Rosatom Technical Academy


#1
09/27/2011 (8:24 am)
mAtan: Calculate the arc-tangent (slope) of a line defined by rise and run. link to math lesson
#2
09/27/2011 (8:28 am)
mTan(val):Use the mTan function to get the tangent of the radian angle val. val is a value between -3.14159/2 and 3.14159/2. Returns the tangent of val. This value will be in the range [ -inf.0 , inf.0 ]
#3
09/27/2011 (8:28 am)
So as you can see, there are two separate functions. I think you were confusing mAtan with mTan.
#4
09/27/2011 (9:47 am)
Okey, thanks for the link. I supposed that it's smth like this but was need to clarify because of my bad english.

I understand the the difference between tangent and arc-tangent and I need to calculate arc-tangent, i.e. angle. And for the angle I'll use mAtan().
#5
09/29/2011 (8:29 am)
make sure you're converting to proper units too! Defaults to radians. (if you need degrees and such)