mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-06 18:49:26 +08:00
Upgrade to Python 3.13 (#11588)
This commit is contained in:
@ -30,9 +30,9 @@ class BezierCurve:
|
||||
returns the x, y values of basis function at time t
|
||||
|
||||
>>> curve = BezierCurve([(1,1), (1,2)])
|
||||
>>> curve.basis_function(0)
|
||||
>>> [float(x) for x in curve.basis_function(0)]
|
||||
[1.0, 0.0]
|
||||
>>> curve.basis_function(1)
|
||||
>>> [float(x) for x in curve.basis_function(1)]
|
||||
[0.0, 1.0]
|
||||
"""
|
||||
assert 0 <= t <= 1, "Time t must be between 0 and 1."
|
||||
@ -55,9 +55,9 @@ class BezierCurve:
|
||||
The last point in the curve is when t = 1.
|
||||
|
||||
>>> curve = BezierCurve([(1,1), (1,2)])
|
||||
>>> curve.bezier_curve_function(0)
|
||||
>>> tuple(float(x) for x in curve.bezier_curve_function(0))
|
||||
(1.0, 1.0)
|
||||
>>> curve.bezier_curve_function(1)
|
||||
>>> tuple(float(x) for x in curve.bezier_curve_function(1))
|
||||
(1.0, 2.0)
|
||||
"""
|
||||
|
||||
|
Reference in New Issue
Block a user