forked from bedohswe/p3he
Add exception handling to MobiusInt.
This commit is contained in:
parent
b5eb207d38
commit
9db9d4f889
3
gyro.py
3
gyro.py
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user