Algorithm::SpatialIndex::Strategy::3D - Base class for 3D indexing strategies
use Algorithm::SpatialIndex; my $idx = Algorithm::SpatialIndex->new( strategy => 'OctTree', );
This class acts as a base class for 3D indexing strategy implementations. It implements part of the strategy interface for three dimensions and provides some defaults that are useful for 3D indexes:
no_of_dimensions returns 3 (doh).
no_of_dimensions
no_of_subnodes returns 8.
no_of_subnodes
item_coord_types defaults to three doubles.
item_coord_types
coord_types defaults to six doubles.
coord_types
This Algorithm::SpatialIndex::Strategy subclass implements a generic filter_items_in_rect method that assumes only three dimensions and that items have three coordinates (x, y, z).
filter_items_in_rect
Steffen Mueller, <smueller@cpan.org>
Copyright (C) 2010, 2011 by Steffen Mueller
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.
To install Algorithm::SpatialIndex, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Algorithm::SpatialIndex
CPAN shell
perl -MCPAN -e shell install Algorithm::SpatialIndex
For more information on module installation, please visit the detailed CPAN module installation guide.