计算bezier曲线或椭圆弧上具有最小y值的点的x,y坐标

2024-09-30 18:29:55 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用https://github.com/mathandy/svgpathtools/tree/master/svgpathtools,我需要找到贝塞尔曲线或椭圆曲线上具有最小y值的点的x,y坐标

curve = CubicBezier(0, 1 + 3j, 3 + 1j, 6 + 1j)
_, _, ymin, _ = curve.bbox() 

如何找到最小y值,并由此得到点的x和y坐标


Tags: httpsgithubmastercomtree曲线椭圆curve