Algorithm::QuadTreeAlgorithm::QuadTree is a QuadTree Algorithm class in pure Perl. | |
Download |
Algorithm::QuadTree Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Ala Qumsieh
- Publisher web site:
- http://search.cpan.org/~aqumsieh/Tk-BarberPole-0.01/BarberPole.pm
Algorithm::QuadTree Tags
Algorithm::QuadTree Description
Algorithm::QuadTree is a QuadTree Algorithm class in pure Perl. Algorithm::QuadTree is a QuadTree Algorithm class in pure Perl.SYNOPSIS use Algorithm::QuadTree; # create a quadtree object my $qt = Algorithm::QuadTree->new(-xmin => 0, -xmax => 1000, -ymin => 0, -ymax => 1000, -depth => 6); # add objects randomly my $x = my $tag = 1; while ($x < 1000) { my $y = 1; while ($y < 1000) { $qt->add($tag++, $x, $y, $x, $y); $y += int rand 200; } $x += int rand 100; } # find the objects enclosed in a given region my $r_list = $qt->getEnclosedObjects(400, 300, 689, 799);Requirements:· Perl
Algorithm::QuadTree Related Software