ee.Projection.translate
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zwraca projekcję przesuniętą o podaną wartość w każdej osi.
Wykorzystanie | Zwroty |
---|
Projection.translate(x, y) | Odwzorowanie |
Argument | Typ | Szczegóły |
---|
to: projection | Odwzorowanie | |
x | Liczba zmiennoprzecinkowa | Wartość przesunięcia wzdłuż osi X. |
y | Liczba zmiennoprzecinkowa | Wartość przesunięcia w osi Y. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]