Created
September 9, 2020 09:56
-
-
Save luckyshot/9fe1be5a5332f8fa02abdaf8eda65bd8 to your computer and use it in GitHub Desktop.
Revisions
-
luckyshot created this gist
Sep 9, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ <?php function distance($x1, $y1, $x2, $y2){ return sqrt( pow(abs($x1 - $x2), 2) + pow(abs($y1 - $y2), 2) ); }