note 16575 added to function.sqrt
| From: | morvandiumNOSPAM at yahoo dot com | Date: | Sun, 04 Nov 2001 21:44:57 +0000 |
| Subject: | note 16575 added to function.sqrt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-20432@lists.php.net to get a copy of this message | ||
I find this useful for any grid system where distances need to be computed (maps and graphs,
mostly).
Just use the distance between points formula (pseudo-code): sqrt((x2-x1)^2+(y2-y1)^2) to find the
distance between two points.
--
http://www.php.net/manual/en/function.sqrt.php
http://master.php.net/manage/user-notes.php?action=edit+16575
http://master.php.net/manage/user-notes.php?action=delete+16575
http://master.php.net/manage/user-notes.php?action=reject+16575