def getDoubledRoundZ(overhangingSegment, segmentRoundZ):
 endpoint = overhangingSegment[0]
 roundZ = (endpoint.point - endpoint.otherEndpoint.point)
 roundZ *= segmentRoundZ
 if (abs(roundZ) == 0.0):
  return complex()
 if (roundZ.real < 0.0):
  roundZ *= (-1.0)
 roundZLength = abs(roundZ)
 return ((roundZ * roundZ) / roundZLength)

def getDoubledRoundZ ( overhangingSegment , segmentRoundZ ) : endpoint = overhangingSegment [ 0 ] roundZ = ( endpoint . point - endpoint . otherEndpoint . point ) roundZ *= segmentRoundZ if ( abs ( roundZ ) == 0.0 ) : return complex ( ) if ( roundZ . real < 0.0 ) : roundZ *= ( - 1.0 ) roundZLength = abs ( roundZ ) return ( ( roundZ * roundZ ) / roundZLength )
get doubled plane angle around z of the overhanging segment .