private static function computeAngleBetween($from, $to) {
        return self::distanceRadians(deg2rad($from['lat']), deg2rad($from['lng']),
                               deg2rad($to['lat']), deg2rad($to['lng']));
    }
private static function computeAngleBetween($from, $to) {
        return self::distanceRadians(deg2rad($from['lat']), deg2rad($from['lng']),
                               deg2rad($to['lat']), deg2rad($to['lng']));
    }
private static function computeAngleBetween ( $ from , $ to ) { return self :: distanceRadians ( deg2rad ( $ from [ 'lat' ] ) , deg2rad ( $ from [ 'lng' ] ) , deg2rad ( $ to [ 'lat' ] ) , deg2rad ( $ to [ 'lng' ] ) ) ; }
Returns the angle between two LatLngs, in radians. This is the same as the distance
on the unit sphere.
Returns the angle between two LatLngs in radians . This is the same as the distance on the unit sphere .