bluefeet / Geo-Distance

Calculate distances and closest locations. (DEPRECATED)
https://metacpan.org/pod/Geo::Distance
Other
6 stars 5 forks source link

"^" used instead of "**" #2

Closed ikegami closed 12 years ago

ikegami commented 12 years ago

Bitwise XOR (^)? Surely that should be exponentiation (**)!

    elsif($self->{formula} eq 'gcd'){
        $c = 2*asin( sqrt(
            ( sin(($lat1-$lat2)/2) )^2 + 
            cos($lat1) * cos($lat2) * 
            ( sin(($lon1-$lon2)/2) )^2
        ) );