X coordinates: The X coordinate is a point's horizontal distance from the origin.
X 坐标:X 坐标是某一个点距离原点的水平距离。
The X coordinate of the first element (10) will be 200, the second element (20) will be 400, and so on.
第一个元素(10)的X坐标将是200,第二个元素(20)的X坐标将是400,依此类推。
Using calculateButtonWidth, you can determine the X coordinate of any particular button relative to the applet by adding the widths of all the previous buttons.
您可以使用 calculateButtonWidth 方法设置按钮的 X 坐标,方法是增加所有早先按钮的宽度。
Well you know what a point is, it's got an x- and a y- coordinate, it's natural to think about those two things as belonging as a single entity.
把这两个坐标认为,是属于一个独立的实体,是理所当然的事情,因此实现这个目的的。
It's easy to think of a point as just a list of an x- and a y- coordinate.
或者说有两个元素的数组,把一个点认为是含有x坐标。
应用推荐