Class Point
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
방법
메서드 | 반환 유형 | 간략한 설명 |
getX() | Number | 포인트 단위로 측정된 가로 좌표를 가져옵니다. |
getY() | Number | 점 단위로 측정된 세로 좌표를 가져옵니다. |
자세한 문서
getX()
포인트 단위로 측정된 가로 좌표를 가져옵니다.
리턴
Number
getY()
점 단위로 측정된 세로 좌표를 가져옵니다.
리턴
Number
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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`"]]