Algorithm-Points-MinimumDistance

 view release on metacpan or  search on metacpan

lib/Algorithm/Points/MinimumDistance.pm  view on Meta::CPAN

                       @offsets;
    }

    my $self = { dimensions => $dim,
                 points     => \@points,
                 boxsize    => $boxsize,
                 offsets    => \@offsets,
                 regions    => { },
                 distances  => { }
	       };
    bless $self, $class;
    $self->_work_out_distances;

    return $self;
}

=item B<box>

  my @box = $nn->box( [1, 2] );

Returns the identifier of the box that the point lives in.



( run in 0.999 second using v1.01-cache-2.11-cpan-de7293f3b23 )