Add exception handling to MobiusInt.

This commit is contained in:
bʰedoh₂ swé 2024-04-11 00:58:27 +05:00
parent b5eb207d38
commit 9db9d4f889

View File

@ -37,7 +37,10 @@ def cDist(cA, cB):
@jit(cache=True) @jit(cache=True)
def MobiusInt(cA,cB,cC,cD): # Bruh def MobiusInt(cA,cB,cC,cD): # Bruh
try:
return Klein2Poincare(cLineIntersection(Poincare2Klein(cA),Poincare2Klein(cB),Poincare2Klein(cC),Poincare2Klein(cD))) return Klein2Poincare(cLineIntersection(Poincare2Klein(cA),Poincare2Klein(cB),Poincare2Klein(cC),Poincare2Klein(cD)))
except:
return 0j
@jit(cache=True) @jit(cache=True)
def MobiusBetween(cA,cB,cN): def MobiusBetween(cA,cB,cN):