Transform:setTransformation
Available since LÖVE 0.11.0 |
This function is not supported in earlier versions. |
Resets the Transform to the specified transformation parameters.
Function
Synopsis
transform = Transform:setTransformation( x, y, angle, sx, sy, ox, oy, kx, ky )
Arguments
number x
- The position of the Transform on the x-axis.
number y
- The position of the Transform on the y-axis.
number angle (0)
- The orientation of the Transform in radians.
number sx (1)
- Scale factor on the x-axis.
number sy (sx)
- Scale factor on the y-axis.
number ox (0)
- Origin offset on the x-axis.
number oy (0)
- Origin offset on the y-axis.
number kx (0)
- Shearing / skew factor on the x-axis.
number ky (0)
- Shearing / skew factor on the y-axis.
Returns
Transform transform
- The Transform the method was called on. Allows easily chaining Transform methods.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info