Class Point
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
पॉइंट
कोई जगह दिखाने वाला पॉइंट.
तरीके
तरीका | रिटर्न टाइप | संक्षिप्त विवरण |
getX() | Number | पॉइंट में मापा गया हॉरिज़ॉन्टल कोऑर्डिनेट हासिल करता है. |
getY() | Number | वर्टिकल कोऑर्डिनेट को पॉइंट में मापा जाता है. |
ज़्यादा जानकारी के साथ दस्तावेज़
getX()
पॉइंट में मापा गया हॉरिज़ॉन्टल कोऑर्डिनेट हासिल करता है.
रिटर्न
Number
getY()
वर्टिकल कोऑर्डिनेट को पॉइंट में मापा जाता है.
रिटर्न
Number
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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`"]]