The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Math::Shape::Circle - a 2d circle

VERSION

version 0.12

METHODS

new

Constructor, requires 3 values: the x,y values for the center point and a radius

    my $circle = Math::Shape::Circle->new(1, 2, 54);

collides

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);

AUTHOR

David Farrell <sillymoos@cpan.org>

COPYRIGHT AND LICENSE

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.