In Simpy, the Circle ()
function is used to create a circle from a center and a radius, from three non-collinear points, or the equation of a circle.
Syntax:
Circle()
Parameters:
center : Point and
radius : number or sympy expression or
points : sequence of three Points or
equation : equation of a circleError: Raises GeometryError When the given equation is not that of a circle. When trying to construct circle from incorrect parameters.
Example # 1: Using center and radius
|
Output:
(5, 5, 5)
Example # 2: Using a three-dot sequence
|
Output:
( sqrt (2) / 2, sqrt (2) / 2, sqrt (2) / 2)
Example # 3: Using the Circle Equation
|
Exit :
Circle (Point2D (0, 0), 5)