Math::Shape::Circle - a 2d circle
version 0.12
Constructor, requires 3 values: the x,y values for the center point and a radius
my $circle = Math::Shape::Circle->new(1, 2, 54);
Boolean method returns 1 if circle collides with another object, else returns 0. Requires another Math::Shape::Vector library object as an argument.
my $is_collision = $circle->collides($other_circle);
David Farrell <sillymoos@cpan.org>
This software is copyright (c) 2014 by David Farrell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Math::Shape::Vector, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Math::Shape::Vector
CPAN shell
perl -MCPAN -e shell install Math::Shape::Vector
For more information on module installation, please visit the detailed CPAN module installation guide.