02.07.2011, 10:22
I studied analytic geometry at school:
SR = Square Root
| = Absolute value
**2 = Squared
x1, x2, y1, y2 = The variables
-------------
EDIT: Wrong, thats the formula to find the distance , sorry.
The right formula is
SR = Square Root
| = Absolute value
**2 = Squared
x1, x2, y1, y2 = The variables
PHP код:
SR[|x1-x2|**2 - |y1-y2|**2]
EDIT: Wrong, thats the formula to find the distance , sorry.
The right formula is
PHP код:
[(x1+x2)/2], [(y1+y2)/2]