Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7c72a61

Browse files
committed
WIP: code to compute bezier segment / path lengths
1 parentf0ddafc commit7c72a61

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

‎lib/matplotlib/bezier.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ def point_at_t(self, t):
215215
"""Return the point on the Bezier curve for parameter *t*."""
216216
returntuple(self(t))
217217

218+
defarc_length(self,tol=1e-6):
219+
pass
220+
218221
defarc_area(self):
219222
r"""
220223
(Signed) area swept out by ray from origin to curve.

‎lib/matplotlib/path.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,9 @@ def intersects_bbox(self, bbox, filled=True):
656656
return_path.path_intersects_rectangle(
657657
self,bbox.x0,bbox.y0,bbox.x1,bbox.y1,filled)
658658

659+
deflength(self,**kwargs):
660+
pass
661+
659662
defsigned_area(self,**kwargs):
660663
"""
661664
Get signed area filled by path.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp