![]() |
![]()
| ![]() |
![]()
NAMEGeometry::Primitive::Circle - A Circle DESCRIPTIONGeometry::Primitive::Circle represents an ellipse with equal width and height. SYNOPSISuse Geometry::Primitive::Circle; my $circle = Geometry::Primitive::Circle->new( radius => 15 ); print $circle->diameter; ATTRIBUTESoriginSet/Get the origin of this circle. radiusSet/Get the radius of this circle. METHODSnewCreates a new Geometry::Primitive::Circle areaReturns the area of this circle. circumferenceReturns the circumference of this circle. diameterReturns the diameter of this circle scale ($amount)Returns a new circle whose radius is $amount times bigger than this one. point_endSet/Get the "end" point of this cicle. Calls "point_start". point_startSet/Get the "start" point of this cicle. Returns the point at the circle's origin X coordinate and the origin Y coordinate + radius / 2. AUTHORCory Watson <gphat@cpan.org> COPYRIGHT & LICENSEYou can redistribute and/or modify this code under the same terms as Perl itself.
|