[instancer] Add assertion

This commit is contained in:
Behdad Esfahbod 2022-08-06 16:22:39 -06:00
parent 8ca0dab0c0
commit d611c1519e

View File

@ -110,6 +110,8 @@ def rebaseTent(tent, axisLimit):
lower, peak, upper = tent
assert -2 <= lower <= peak <= upper <= +2
assert peak != 0
# Get the pinned case out of the way
if axisMin == axisMax:
return _solvePinned(tent, axisLimit)