def equateVertexesByFunction(equationFunction, points, prefix, revolutions, xmlElement):
 prefixedEquationName = (prefix + equationFunction.__name__[len('equate'):].replace('Dot', '.').lower())
 if (prefixedEquationName not in xmlElement.attributeDictionary):
  return
 equationResult = EquationResult(prefixedEquationName, revolutions, xmlElement)
 for point in points:
  returnValue = equationResult.getReturnValue(point)
  if (returnValue == None):
   print 'Warning, returnValue in alterVertexesByEquation in equation is None for:'
   print point
   print xmlElement
  else:
   equationFunction(point, returnValue)
 equationResult.function.reset()

def equateVertexesByFunction ( equationFunction , points , prefix , revolutions , xmlElement ) : prefixedEquationName = ( prefix + equationFunction . __name__ [ len ( 'equate' ) : ] . replace ( 'Dot' , '.' ) . lower ( ) ) if ( prefixedEquationName not in xmlElement . attributeDictionary ) : return equationResult = EquationResult ( prefixedEquationName , revolutions , xmlElement ) for point in points : returnValue = equationResult . getReturnValue ( point ) if ( returnValue == None ) : print 'Warning, returnValue in alterVertexesByEquation in equation is None for:' print point print xmlElement else : equationFunction ( point , returnValue ) equationResult . function . reset ( )
get equated points by equation function .