Skip to content

Instantly share code, notes, and snippets.

@aikar aikar/gist:492757
Created Jul 27, 2010

Embed
What would you like to do?
<?php
$distance = distance($src['lat'], $src['lng'], $dest['lat'], $dest['lng']);
$angle = getangle($src['lat'], $src['lng'], $dest['lat'], $dest['lng']);
$headdist = max($diststance * .95, $distance - .01);
$head = circle::getLatLngByAngle($src, $angle, $distance + $radius);
$srcleft = circle::getLatLngByAngle($src, $angle - 90, $radius);
$srcright = circle::getLatLngByAngle($src, $angle + 90, $radius);
$headleft = circle::getLatLngByAngle($srcleft, $angle, $headdist);
$headright = circle::getLatLngByAngle($srcright, $angle, $headdist);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.