def getComplexByPrefix(elementNode, prefix, valueComplex):
 value = evaluate.getEvaluatedValue(None, elementNode, prefix)
 if (value != None):
  valueComplex = getComplexByDictionaryListValue(value, valueComplex)
 x = evaluate.getEvaluatedFloat(None, elementNode, (prefix + '.x'))
 if (x != None):
  valueComplex = complex(x, getComplexIfNone(valueComplex).imag)
 y = evaluate.getEvaluatedFloat(None, elementNode, (prefix + '.y'))
 if (y != None):
  valueComplex = complex(getComplexIfNone(valueComplex).real, y)
 return valueComplex

def getComplexByPrefix ( elementNode , prefix , valueComplex ) : value = evaluate . getEvaluatedValue ( None , elementNode , prefix ) if ( value != None ) : valueComplex = getComplexByDictionaryListValue ( value , valueComplex ) x = evaluate . getEvaluatedFloat ( None , elementNode , ( prefix + '.x' ) ) if ( x != None ) : valueComplex = complex ( x , getComplexIfNone ( valueComplex ) . imag ) y = evaluate . getEvaluatedFloat ( None , elementNode , ( prefix + '.y' ) ) if ( y != None ) : valueComplex = complex ( getComplexIfNone ( valueComplex ) . real , y ) return valueComplex
get complex from prefix and xml element .