1

**Advanced Technical Forum / square root & math**

« **on:**15 Aug 2003, 09:12 »

So anyway, I'm trying to calculate the distance between 2 points on the screen, to see if a point is within a certain radius of another point... and...

Well, I was never really a math person. The best idea I could come up with is using the pythagorean theorem... But is there a square root operation in AGS? If not, how can I make one? Can I somehow use the functions in Erica's math plugin? (Sorry, like I said, my math is very limited.) Or is there a better way to do this? I'm guessing there is.

OK, thanks. (my first tech question in years)

Well, I was never really a math person. The best idea I could come up with is using the pythagorean theorem... But is there a square root operation in AGS? If not, how can I make one? Can I somehow use the functions in Erica's math plugin? (Sorry, like I said, my math is very limited.) Or is there a better way to do this? I'm guessing there is.

OK, thanks. (my first tech question in years)