NAME

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

VERSION

version 0.15

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 <dfarrell@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 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.