Class Point
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
נקודה
נקודה שמייצגת מיקום.
שיטות
שיטה | סוג הערך שמוחזר | תיאור קצר |
getX() | Number | הפונקציה מקבלת את הקואורדינטה האופקית שנמדדת בנקודות. |
getY() | Number | הפונקציה מקבלת את הקואורדינטה האנכית, שנמדדת בנקודות. |
תיעוד מפורט
getX()
הפונקציה מקבלת את הקואורדינטה האופקית שנמדדת בנקודות.
החזרות
Number
getY()
הפונקציה מקבלת את הקואורדינטה האנכית, שנמדדת בנקודות.
החזרות
Number
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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`"]]