| GIS-Distance-Fast documentation | Contained in the GIS-Distance-Fast distribution. |
GIS::Distance::Formula::Vincenty::Fast - C implementation of GIS::Distance::Formula::Vincenty.
This module is used by GIS::Distance and has the same API as GIS::Distance::Formula::Vincenty.
The results from Formula::Vincenty versus Formula::Vincenty::Fast are slightly different. I'm still not sure why this is, as the C code is nearly identical to the Perl code.
Aran Clary Deltac <bluefeet@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| GIS-Distance-Fast documentation | Contained in the GIS-Distance-Fast distribution. |
package GIS::Distance::Formula::Vincenty::Fast;
use Any::Moose; extends 'GIS::Distance::Formula::Vincenty'; use GIS::Distance::Fast; use Class::Measure::Length qw( length ); sub distance { my $self = shift; my $c = GIS::Distance::Fast::vincenty_distance( @_ ); return length( $c, 'm' ); } 1;