Flutter, quadraticBezierTo 哪个是 x 和 y?

Flutter, quadraticBezierTo which is x and y?

在上面的场景中,x1 and y1 and x2 and y2 是什么点???

Path path = Path();
path.quadraticBezierTo(x1, y1, x2, y2)

https://api.flutter.dev/flutter/dart-ui/Path/quadraticBezierTo.html 说:

Adds a quadratic bezier segment that curves from the current point to the given point (x2,y2), using the control point (x1,y1).

即(x1,y1)是你图片中的“手柄点”,(x2,y2)是终点。