2

SVG's elliptical arc curve path command takes 9 parameters: implicit current X and Y, rx (x-radius), ry (y-radius), x-axis-rotation, large-arc-flag, sweep-flag, x (endpoint-x), y (endpoint-y). Lets ignore the two "flag" parameters that I believe to be unimportant for my question. Then 7 parameters remain.

Now my question is: is the ellipse overdetermined or not? I just believe that it is, because providing too small rx and ry and an endpoint which is too far the the current point will result in no solution. Thinking this way, only a subset of parameter space forms valid arches, hence the ellipse is overdetermined.

On the other hand, I'm not a geometry expert and I know that SVG is a well-thought-out standard, suggesting that I am wrong. Am I or not?

4

1 回答 1

3

根据http://www.w3.org/TR/SVG/implnote.html#ArcOutOfRangeParameters

如果 rx, ry 和 φ 没有解(基本上,椭圆不够大,无法从 (x1, y1) 到达 (x2, y2)),则椭圆会均匀放大,直到只有一个解(直到椭圆足够大)。

于 2012-03-15T17:33:16.443 回答