ee.Array.hypot
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คำนวณขนาดของเวกเตอร์ 2 มิติ [x, y] โดยพิจารณาจากองค์ประกอบ
การใช้งาน | การคืนสินค้า |
---|
Array.hypot(right) | อาร์เรย์ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ left | อาร์เรย์ | ค่าด้านซ้าย |
right | อาร์เรย์ | ค่าทางด้านขวา |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 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. |"]]