derivative, normal, and unit_tangent now generalize to vectors for path segments (not paths)

vectorize-path-point
Andrew Port 2020-12-01 22:49:38 -08:00
parent f9febbd85e
commit 44e88d54e5
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ def bezier_unit_tangent(seg, t):
This can be undone with:
>>> numpy.seterr(**old_numpy_error_settings)
"""
assert 0 <= t <= 1
dseg = seg.derivative(t)
# Note: dseg might be numpy value, use np.seterr(invalid='raise')