NAME
Geometry::Primitive::Circle
DESCRIPTION
Geometry::Primitive::Circle represents a closed arc
SYNOPSIS
use Geometry::Primitive::Circle;
my $circle = Geometry::Primitive::Circle->new(
radius => 15
);
print $circle->diameter;
METHODS
Constructor
- new
-
Creates a new Geometry::Primitive::Arc
Instance Methods
- area
-
Returns the area of this circle.
- circumference
-
Returns the circumference of this circle.
- diameter
-
Returns the diameter of this circle
- scale ($amount)
-
Returns a new circle whose radius is $amount times bigger than this one.
- origin
-
Set/Get the origin of this circle.
- radius
-
Set/Get the radius of this circle.
AUTHOR
Cory Watson <gphat@cpan.org>
Infinity Interactive, http://www.iinteractive.com
COPYRIGHT & LICENSE
Copyright 2008 by Infinity Interactive, Inc.
You can redistribute and/or modify this code under the same terms as Perl itself.