def getAngleDifferenceByComplex(subtractFromComplex, subtractComplex):
 subtractComplexMirror = complex(subtractComplex.real, (- subtractComplex.imag))
 differenceComplex = (subtractComplexMirror * subtractFromComplex)
 return math.atan2(differenceComplex.imag, differenceComplex.real)

def getAngleDifferenceByComplex ( subtractFromComplex , subtractComplex ) : subtractComplexMirror = complex ( subtractComplex . real , ( - subtractComplex . imag ) ) differenceComplex = ( subtractComplexMirror * subtractFromComplex ) return math . atan2 ( differenceComplex . imag , differenceComplex . real )
get the angle between a pair of normalized complexes .