Class Point
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
方法
方法 | 傳回類型 | 簡短說明 |
getX() | Number | 取得以點為單位的水平座標。 |
getY() | Number | 取得以點為單位的垂直座標。 |
內容詳盡的說明文件
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eA Point represents a location and has methods to access its coordinates.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetX()\u003c/code\u003e and \u003ccode\u003egetY()\u003c/code\u003e methods return the horizontal and vertical coordinates of the Point in points, respectively.\u003c/p\u003e\n"]]],[],null,["# Class Point\n\nPoint\n\nA point representing a location. \n\n### Methods\n\n| Method | Return type | Brief description |\n|-------------------|-------------|-----------------------------------------------------|\n| [getX()](#getX()) | `Number` | Gets the horizontal coordinate, measured in points. |\n| [getY()](#getY()) | `Number` | Gets the vertical coordinate, measured in points. |\n\nDetailed documentation\n----------------------\n\n### `getX()`\n\nGets the horizontal coordinate, measured in points.\n\n#### Return\n\n\n`Number`\n\n*** ** * ** ***\n\n### `getY()`\n\nGets the vertical coordinate, measured in points.\n\n#### Return\n\n\n`Number`"]]