ee.Projection.translate
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แสดงผลการฉายภาพที่แปลตามจำนวนที่ระบุในแต่ละแกน
การใช้งาน | การคืนสินค้า |
---|
Projection.translate(x, y) | การฉายภาพ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ projection | การฉายภาพ | |
x | ทศนิยม | จำนวนที่จะแปลในแกน x |
y | ทศนิยม | จำนวนที่จะแปลในแกน y |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eThis function modifies a Projection to shift its output by specified amounts in the x and y directions.\u003c/p\u003e\n"],["\u003cp\u003eIt takes two arguments, \u003ccode\u003ex\u003c/code\u003e and \u003ccode\u003ey\u003c/code\u003e, representing the translation amounts for the respective axes.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003etranslate\u003c/code\u003e on a Projection object returns a new, translated Projection, leaving the original unchanged.\u003c/p\u003e\n"]]],[],null,["# ee.Projection.translate\n\nReturns the projection translated by the given amount in each axis.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------|------------|\n| Projection.translate`(x, y)` | Projection |\n\n| Argument | Type | Details |\n|--------------------|------------|-------------------------------------------|\n| this: `projection` | Projection | |\n| `x` | Float | The amount to translate by in the x axis. |\n| `y` | Float | The amount to translate by in the y axis. |"]]