"""
(CubicBezier(start=(23+7.191000000000001j), control1=(23+11.260000000000002j), control2=(17.864+15.816j), end=(12+21.593j)),
CubicBezier(start=(17.726+1.0100000000000016j), control1=(15.523+1.0100000000000016j), control2=(13.28+2.0520000000000014j), end=(12+4.248000000000001j)))
"""
# lets say for now we will num_segments = 10
# # Define the control points
# P0 = np.array(set)
# P1 = np.array([6.0, 1.0])
# P2 = np.array([1.0, 2.0])
# P3 = np.array([2.0, 3.0])
# # Number of line segments (adjust as needed for desired granularity)
# how many lines we want to split each one into
# num_segments = 100
# # Calculate points along the curve and store them in a list
# points_on_curve = []
# for i in range(num_segments + 1):
# t = i / num_segments
# point = ((1 - t) ** 3) * P0 + (3 * (1 - t) ** 2 * t) * P1 + (3 * (1 - t) * t ** 2) * P2 + (t ** 3) * P3
# points_on_curve.append(point)
-
Notifications
You must be signed in to change notification settings - Fork 0
RoxyFarhad/robodraw
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published