derivative, normal, and unit_tangent now generalize to vectors for path segments (not paths)
parent
f9febbd85e
commit
44e88d54e5
|
@ -316,7 +316,7 @@ def bezier_unit_tangent(seg, t):
|
||||||
This can be undone with:
|
This can be undone with:
|
||||||
>>> numpy.seterr(**old_numpy_error_settings)
|
>>> numpy.seterr(**old_numpy_error_settings)
|
||||||
"""
|
"""
|
||||||
assert 0 <= t <= 1
|
|
||||||
dseg = seg.derivative(t)
|
dseg = seg.derivative(t)
|
||||||
|
|
||||||
# Note: dseg might be numpy value, use np.seterr(invalid='raise')
|
# Note: dseg might be numpy value, use np.seterr(invalid='raise')
|
||||||
|
|
Loading…
Reference in New Issue