def isSharpCorner(beginComplex, centerComplex, endComplex):
 centerBeginComplex = (beginComplex - centerComplex)
 centerEndComplex = (endComplex - centerComplex)
 centerBeginLength = abs(centerBeginComplex)
 centerEndLength = abs(centerEndComplex)
 if ((centerBeginLength <= 0.0) or (centerEndLength <= 0.0)):
  return False
 centerBeginComplex /= centerBeginLength
 centerEndComplex /= centerEndLength
 return (euclidean.getDotProduct(centerBeginComplex, centerEndComplex) > 0.9)

def isSharpCorner ( beginComplex , centerComplex , endComplex ) : centerBeginComplex = ( beginComplex - centerComplex ) centerEndComplex = ( endComplex - centerComplex ) centerBeginLength = abs ( centerBeginComplex ) centerEndLength = abs ( centerEndComplex ) if ( ( centerBeginLength <= 0.0 ) or ( centerEndLength <= 0.0 ) ) : return False centerBeginComplex /= centerBeginLength centerEndComplex /= centerEndLength return ( euclidean . getDotProduct ( centerBeginComplex , centerEndComplex ) > 0.9 )
determine if the three complex points form a sharp corner .