Circle#

class Circle(center, radius)#

Bases: object

Representation of a geometric circle in the complex plane.

Parameters:
  • center (complex)

  • radius (float)

center#

The center of the circle (complex number).

radius#

The radius of the circle (float).

__init__(center, radius)#

Create a circle characterized by a center point and a radius.

Parameters:
  • center (complex) – Complex number representing the circle’s center.

  • radius (float) – Radius of the circle.

Methods

__init__(center, radius)

Create a circle characterized by a center point and a radius.

length()

Return the circumference of the circle.

length()#

Return the circumference of the circle.