ee.Array.hypot
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tính độ lớn của vectơ 2D [x, y] theo từng phần tử.
Cách sử dụng | Giá trị trả về |
---|
Array.hypot(right) | Mảng |
Đối số | Loại | Thông tin chi tiết |
---|
this: left | Mảng | Giá trị bên trái. |
right | Mảng | Giá trị bên phải. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eCalculates the magnitude (hypotenuse) of 2D vectors represented by corresponding elements within two arrays.\u003c/p\u003e\n"],["\u003cp\u003eThe function is used as \u003ccode\u003eArray.hypot(right)\u003c/code\u003e where 'left' is the calling array and 'right' is the argument array.\u003c/p\u003e\n"],["\u003cp\u003eBoth input arrays, 'left' and 'right', are expected to contain numerical values representing the x and y components of the vectors, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe result is a new array containing the calculated magnitudes for each corresponding pair of elements from the input arrays.\u003c/p\u003e\n"]]],[],null,["# ee.Array.hypot\n\nOn an element-wise basis, calculates the magnitude of the 2D vector \\[x, y\\].\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------|---------|\n| Array.hypot`(right)` | Array |\n\n| Argument | Type | Details |\n|--------------|-------|-----------------------|\n| this: `left` | Array | The left-hand value. |\n| `right` | Array | The right-hand value. |"]]