Getting a Center point from 2 Co-ordinates
#9

I studied analytic geometry at school:

SR = Square Root
| = Absolute value
**2 = Squared
x1, x2, y1, y2 = The variables

PHP код:
SR[|x1-x2|**- |y1-y2|**2
-------------

EDIT: Wrong, thats the formula to find the distance , sorry.

The right formula is

PHP код:
[(x1+x2)/2], [(y1+y2)/2
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)