ee.Projection.translate
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.
Trả về phép chiếu được dịch theo số lượng đã cho ở mỗi trục.
Cách sử dụng | Giá trị trả về |
---|
Projection.translate(x, y) | Dự đoán |
Đối số | Loại | Thông tin chi tiết |
---|
this: projection | Dự đoán | |
x | Số thực dấu phẩy động | Số tiền cần dịch theo trục x. |
y | Số thực dấu phẩy động | Số tiền cần dịch theo trục y. |
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\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. |"]]