Add exception handling to MobiusInt.
This commit is contained in:
parent
b5eb207d38
commit
9db9d4f889
5
gyro.py
5
gyro.py
@ -37,7 +37,10 @@ def cDist(cA, cB):
|
||||
|
||||
@jit(cache=True)
|
||||
def MobiusInt(cA,cB,cC,cD): # Bruh
|
||||
return Klein2Poincare(cLineIntersection(Poincare2Klein(cA),Poincare2Klein(cB),Poincare2Klein(cC),Poincare2Klein(cD)))
|
||||
try:
|
||||
return Klein2Poincare(cLineIntersection(Poincare2Klein(cA),Poincare2Klein(cB),Poincare2Klein(cC),Poincare2Klein(cD)))
|
||||
except:
|
||||
return 0j
|
||||
|
||||
@jit(cache=True)
|
||||
def MobiusBetween(cA,cB,cN):
|
||||
|
Loading…
Reference in New Issue
Block a user