note 16575 deleted from function.sqrt by tularis
| From: | tularis@php.net | Date: | Thu, 16 Feb 2012 16:36:18 +0000 |
| Subject: | note 16575 deleted from function.sqrt by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-186177@lists.php.net to get a copy of this message | ||
Note Submitter: morvandiumNOSPAM at yahoo dot com
----
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.