GIS::Distance::Formula::Vincenty::Fast - C implementation of GIS::Distance::Formula::Vincenty.


GIS-Distance-Fast documentation Contained in the GIS-Distance-Fast distribution.

Index


Code Index:

NAME

Top

GIS::Distance::Formula::Vincenty::Fast - C implementation of GIS::Distance::Formula::Vincenty.

DESCRIPTION

Top

This module is used by GIS::Distance and has the same API as GIS::Distance::Formula::Vincenty.

NOTES

Top

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.

AUTHOR

Top

Aran Clary Deltac <bluefeet@cpan.org>

LICENSE

Top

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;