Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Array.atan2
Stay organized with collections
Save and categorize content based on your preferences.
On an element-wise basis, calculates the angle formed by the 2D vector [x, y].
Usage | Returns | Array.atan2(right) | Array |
Argument | Type | Details | this: left | Array | The left-hand value. |
right | Array | The right-hand value. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["\u003cp\u003eCalculates the angle of a 2D vector represented by \u003ccode\u003e[x, y]\u003c/code\u003e elements.\u003c/p\u003e\n"],["\u003cp\u003eOperates element-wise on the input arrays.\u003c/p\u003e\n"],["\u003cp\u003eTakes two input arrays: \u003ccode\u003eleft\u003c/code\u003e representing the x-coordinate and \u003ccode\u003eright\u003c/code\u003e representing the y-coordinate.\u003c/p\u003e\n"],["\u003cp\u003eReturns an array containing the calculated angles for each corresponding pair of elements from the input arrays.\u003c/p\u003e\n"]]],[],null,["# ee.Array.atan2\n\nOn an element-wise basis, calculates the angle formed by the 2D vector \\[x, y\\].\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------|---------|\n| Array.atan2`(right)` | Array |\n\n| Argument | Type | Details |\n|--------------|-------|-----------------------|\n| this: `left` | Array | The left-hand value. |\n| `right` | Array | The right-hand value. |"]]