def getTopOverBottom(angle, endZ, inradiusComplex, startZ):
 return max((1.0 - ((abs((endZ - startZ)) * math.tan(angle)) / lineation.getRadiusAverage(inradiusComplex))), 0.0)

def getTopOverBottom ( angle , endZ , inradiusComplex , startZ ) : return max ( ( 1.0 - ( ( abs ( ( endZ - startZ ) ) * math . tan ( angle ) ) / lineation . getRadiusAverage ( inradiusComplex ) ) ) , 0.0 )
get topoverbottom by angle in radians .