Geometry::Primitive::Circle(3pm)

Geometry::Primitive::Circle3pm

A circle

Usage

  use Geometry::Primitive::Circle;
  my $circle = Geometry::Primitive::Circle->new(
      radius => 15
  );
  print $circle->diameter;

Overview

Geometry::Primitive::Circle represents an ellipse with equal width and height.

Attributes

origin

Set/Get the origin of this circle.

radius

Set/Get the radius of this circle.

Methods

new

Creates a new Geometry::Primitive::Circle

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.

point_end

Set/Get the "end" point of this cicle. Calls "point_start".

point_start

Set/Get the "start" point of this cicle. Returns the point at the circle's origin X coordinate and the origin Y coordinate + radius / 2.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 3 times.

  1. 6.0–7
  2. 8–9
  3. 10–11
  4. 12–13

Author

Cory Watson <[email protected]>

From libgeometry-primitive-perl 0.24-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.