change e of coordinates 坐标轴的变换
To draw the stock graph, I must change the scale of the dollar and day values into SVG view coordinates.
为了绘制股票图像,必须将美元和每日数据的尺度转化成svg视图坐标。
But the Robot works with screen coordinates instead of Swing component references, so using it directly in tests will make the tests fragile, meaning any change in layout will break them.
不过Robot仅对屏幕坐标有效,而对Swing组件参考无效,因此直接使用它会使测试很脆弱,这意味着任何布局变化都会中止测试。
We could do it dy dx. Or, maybe we will want to actually make a change of variables to first shift this to the origin, x-2 you know, change x to x minus two and then switch to polar coordinates.
也可以dy,dx来划分,或者,对变量做一下变化,移动到原点,就是把x变成,然后再转化成极坐标。
应用推荐