Class Point
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
วิธีการ
วิธีการ | ประเภทการแสดงผล | รายละเอียดแบบย่อ |
getX() | Number | รับพิกัดแนวนอนซึ่งวัดเป็นจุด |
getY() | Number | รับพิกัดแนวตั้งซึ่งวัดเป็นจุด |
เอกสารประกอบโดยละเอียด
getX()
รับพิกัดแนวนอนซึ่งวัดเป็นจุด
รีเทิร์น
Number
getY()
รับพิกัดแนวตั้งซึ่งวัดเป็นจุด
รีเทิร์น
Number
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\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`"]]