Isn't it pointless to do Math.abs() since result is always positive
number anyway? ;)
Kenneth Kawamoto
http://www.materiaprima.co.uk/
Paul Andrews wrote:
----- Original Message ----- From: "Merrill, Jason"
<[EMAIL PROTECTED]>
To: "Flash Coders List" <[email protected]>
Sent: Tuesday, March 11, 2008 1:53 PM
Subject: RE: [Flashcoders] calculating distance between two points
Your teacher must be cringing!
"The square of the hypotenuse equals the sum of the squares of the
opposite two sides" should be familar.. ;-)
Math.sqrt ( Math.pow(Math.abs(x1-x2),2 )+Math.pow(Math.abs(y1-y2),2
)+))
Why not skip the math lessons and use the Point class?
Yes, my explanation was what was completely pointless..
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders