Fail closed on invalid versor construction
This commit is contained in:
parent
9723941a38
commit
79e28c5835
1 changed files with 0 additions and 3 deletions
|
|
@ -70,7 +70,4 @@ def versor_unit_residual(v: np.ndarray, *, allow_negative: bool = False) -> floa
|
|||
minus = vv.copy()
|
||||
minus[0] += 1.0
|
||||
return min(plus_residual, float(np.linalg.norm(minus)))
|
||||
|
||||
|
||||
def versor_condition(v: np.ndarray) -> float:
|
||||
return versor_unit_residual(v, allow_negative=False)
|
||||
|
|
|
|||
Loading…
Reference in a new issue