ee.Array.hypot
On an element-wise basis, calculates the magnitude of the 2D vector [x, y].
Usage | Returns |
---|
Array.hypot(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."],[[["Calculates the magnitude (hypotenuse) of 2D vectors represented by corresponding elements within two arrays."],["The function is used as `Array.hypot(right)` where 'left' is the calling array and 'right' is the argument array."],["Both input arrays, 'left' and 'right', are expected to contain numerical values representing the x and y components of the vectors, respectively."],["The result is a new array containing the calculated magnitudes for each corresponding pair of elements from the input arrays."]]],[]]