Coordinates of centers of circles or arcs in a script

 From:  Larry Fahnoe (FAHNOE)
9875.3 In reply to 9875.2 
Thank you for the clarification Cemortan_Tudor, I will look into the distinction of segments vs. a joined curve.

My main question is *how* do I get the coordinates of the center of either a circle or arc?

code:
    var curves = moi.geometryDatabase.getSelectedObjects().getCurves();
    for (var i = 0; i < curves.length; ++i) {
        for (var j = 0; j <= curves.item(i).getSubObjects().length; ++j) {
        if ( curves.item(i).getSubObjects().item(j).isCircle || curves.item(i).getSubObjects().item(j).isArc)
           // How do I get the center point?
        }
    }


--Larry