def getCentersFromCircleNodes(circleNodes, radius):
 if (len(circleNodes) < 2):
  return []
 circleIntersections = getCircleIntersectionsFromCircleNodes(circleNodes)
 circleIntersectionLoops = getCircleIntersectionLoops(circleIntersections)
 return getCentersFromIntersectionLoops(circleIntersectionLoops, radius)

def getCentersFromCircleNodes ( circleNodes , radius ) : if ( len ( circleNodes ) < 2 ) : return [ ] circleIntersections = getCircleIntersectionsFromCircleNodes ( circleNodes ) circleIntersectionLoops = getCircleIntersectionLoops ( circleIntersections ) return getCentersFromIntersectionLoops ( circleIntersectionLoops , radius )
get the complex centers of the circle intersection loops from circle nodes .