def circle(radius=None, center=None, **kwargs):
    """
    Create a Path2D containing a single or multiple rectangles
    with the specified bounds.

    Parameters
    --------------
    bounds : (2, 2) float, or (m, 2, 2) float
      Minimum XY, Maximum XY

    Returns
    -------------
    rect : Path2D
      Path containing specified rectangles
    """
    from .path import Path2D

    if center is None:
        center = [0.0, 0.0]
    else:
        center = np.asanyarray(center, dtype=np.float64)
    if radius is None:
        radius = 1.0
    else:
        radius = float(radius)

    # (3, 2) float, points on arc
    three = arc.to_threepoint(angles=[0, np.pi],
                              center=center,
                              radius=radius) + center

    result = Path2D(entities=[entities.Arc(points=np.arange(3), closed=True)],
                    vertices=three,
                    **kwargs)
    return result
def circle ( radius = None , center = None , ** kwargs ) : from . path import Path2D if center is None : center = [ 0.0 , 0.0 ] else : center = np . asanyarray ( center , dtype = np . float64 ) if radius is None : radius = 1.0 else : radius = float ( radius ) three = arc . to_threepoint ( angles = [ 0 , np . pi ] , center = center , radius = radius ) + center result = Path2D ( entities = [ entities . Arc ( points = np . arange ( 3 ) , closed = True ) ] , vertices = three , ** kwargs ) return result
Create a Path2D containing a single or multiple rectangles
    with the specified bounds.

    Parameters
    --------------
    bounds : (2, 2) float, or (m, 2, 2) float
      Minimum XY, Maximum XY

    Returns
    -------------
    rect : Path2D
      Path containing specified rectangles