Spec-Zone.ru › LÖVE

Transform:translate

Available since LÖVE 11.0
This function is not supported in earlier versions.

Applies a translation to the Transform's coordinate system. This method does not reset any previously applied transformations.

Function

Synopsis

transform = Transform:translate( dx, dy )

Arguments

number dx
The relative translation along the x-axis.
number dy
The relative translation along the y-axis.

Returns

Transform transform
The Transform object the method was called on. Allows easily chaining Transform methods.

See Also

  • Transform
  • Transform:reset
  • Transform:rotate
  • Transform:scale
  • Transform:shear
  • Transform:setTransformation

© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Transform:translate

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API